|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectf00f.net.irc.martyr.dcc.ChatRequestCommand
public class ChatRequestCommand
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 |
| Constructor Summary | |
|---|---|
ChatRequestCommand(java.net.InetAddress local,
java.lang.String toWhom,
DccChatHandler handler,
int timeout)
|
|
ChatRequestCommand(IRCConnection conn,
java.lang.String toWhom,
DccChatHandler handler)
|
|
| 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. |
protected void |
startHandlerThread(java.net.ServerSocket ss,
DccChatHandler handler)
Called by the constructor, this method starts the thread that waits for connections and starts the handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SO_TIMEOUT
| Constructor Detail |
|---|
public ChatRequestCommand(IRCConnection conn,
java.lang.String toWhom,
DccChatHandler handler)
throws java.io.IOException
conn - requred to discover the local address.toWhom - Who the chat request will be sent tohandler - DccChatHandler that will handle thet communication
java.io.IOException - if unable to establish connection
public ChatRequestCommand(java.net.InetAddress local,
java.lang.String toWhom,
DccChatHandler handler,
int timeout)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void startHandlerThread(java.net.ServerSocket ss,
DccChatHandler handler)
ss - Socket on our end that will listen for a dcc chathandler - Handler that will handle incoming requestspublic java.lang.String getIrcIdentifier()
Command
getIrcIdentifier in interface Commandpublic java.lang.String render()
OutCommand
render in interface OutCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||