|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jackofalltrades.irc.impl.PingResponder
Listeners for PING commands from the server and responds with the appropriate PONG message.
// create a connection to "irc.irchighway.net" on port 6667.
IrcConnection connection = new IrcConnection("irc.darkmyst.net", 6667);
// add an instance of PingResponder to automatically response to PING
// messages from the server.
connection.addIrcCommandListener(new PingResponder());
| Constructor Summary | |
PingResponder()
Creates a new instance of PingResponder |
|
| Method Summary | |
void |
commandPrepared(IrcCommandEvent event)
Does nothing. |
void |
commandReceived(IrcCommandEvent event)
Invoked when a command is received from an IRC server or when a Connection object wishes to send a command to the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PingResponder()
| Method Detail |
public void commandReceived(IrcCommandEvent event)
commandReceived in interface IrcCommandListenerpublic void commandPrepared(IrcCommandEvent event)
commandPrepared in interface IrcCommandListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||