|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sashenka.irc.IRCConnection
| Constructor Summary | |
IRCConnection(java.lang.String host,
int port,
IRCConnectionHandler handler)
Construct a new IRCConnection and connect it to the given host/port. |
|
| Method Summary | |
void |
close(java.lang.String why)
Send a quit message to the remote end. |
void |
join(Channel channel)
|
void |
join(Channel[] channels)
|
void |
part(Channel channel)
|
java.lang.String |
receive()
Read the next message from the server. |
void |
run()
Enter into a loop continually reading from and dispatching the incoming messages to the handler. |
void |
send(java.lang.String message)
Send a propery formatted IRC command message to the server. |
void |
sendNamesRequest(Channel c)
|
void |
sendNotice(Destination to,
java.lang.String message)
|
void |
sendPrivMsg(Destination[] to,
java.lang.String message)
|
void |
sendPrivMsg(Destination to,
java.lang.String message)
|
void |
whois(IRCUser user)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IRCConnection(java.lang.String host,
int port,
IRCConnectionHandler handler)
throws java.io.IOException,
java.net.UnknownHostException
| Method Detail |
public void close(java.lang.String why)
public void send(java.lang.String message)
public java.lang.String receive()
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablepublic void join(Channel[] channels)
join in interface IRCClientHandlerpublic void whois(IRCUser user)
public void join(Channel channel)
join in interface IRCClientHandlerpublic void part(Channel channel)
public void sendPrivMsg(Destination[] to,
java.lang.String message)
sendPrivMsg in interface IRCClientHandler
public void sendPrivMsg(Destination to,
java.lang.String message)
sendPrivMsg in interface IRCClientHandlerpublic void sendNamesRequest(Channel c)
public void sendNotice(Destination to,
java.lang.String message)
sendNotice in interface IRCClientHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||