f00f.net.irc.martyr.dcc
Class ChatRequestCommand
java.lang.Object
|
+--f00f.net.irc.martyr.dcc.ChatRequestCommand
- All Implemented Interfaces:
- Command, OutCommand
- public class ChatRequestCommand
- extends java.lang.Object
- implements OutCommand
ChatRequestCommand sets up a socket to listen for a dcc connection
and then sends a request to chat to the indicated party.
Still experimental.
|
Field Summary |
static int |
SO_TIMEOUT
Defaults to 30 minutes |
|
Method Summary |
java.lang.String |
getIrcIdentifier()
Returns the string IRC uses to identify this command. |
java.lang.String |
render()
Forms a string appropriate to send to the server, if required. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SO_TIMEOUT
public static final int SO_TIMEOUT
- Defaults to 30 minutes
ChatRequestCommand
public ChatRequestCommand(IRCConnection conn,
java.lang.String toWhom,
DccChatHandler handler)
throws java.io.IOException
- Parameters:
conn - requred to discover the local address.
ChatRequestCommand
public ChatRequestCommand(java.net.InetAddress local,
java.lang.String toWhom,
DccChatHandler handler,
int timeout)
throws java.io.IOException
getIrcIdentifier
public java.lang.String getIrcIdentifier()
- Description copied from interface:
Command
- Returns the string IRC uses to identify this command. Examples:
NICK, PING, KILL, 332. Not strictly required for OutCommands
as the irc identifier is expected to be part of the reder()
result.
- Specified by:
getIrcIdentifier in interface Command
render
public java.lang.String render()
- Description copied from interface:
OutCommand
- Forms a string appropriate to send to the server, if required.
Some commands will have no such string, as they are received and not
sent. The string returned is sent to the server verbatim.
- Specified by:
render in interface OutCommand
Copyright © 2000,2001,2002,2003 f00f networks.