|
DccChat (PircBot 1.0.3 - Paul's Java IRC Bot Framework)
org.jibble.pircbot
|
Constructor Summary | |
protected |
DccChat(PircBot bot,
String sourceNick,
Socket socket)
This constructor is used after we have issued a DCC CHAT request to somebody. |
protected |
DccChat(PircBot bot,
String sourceNick,
String address,
int port)
This constructor is used when we are accepting a DCC CHAT request from somebody. |
Method Summary | |
void |
close()
Closes the DCC Chat connection. |
String |
readLine()
Reads the next line of text from the client at the other end of our DCC Chat connection. |
void |
sendLine(String line)
Sends a line of text to the client at the other end of our DCC Chat connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DccChat(PircBot bot, String sourceNick, String address, int port) throws IOException
bot
- An instance of the underlying PircBot.sourceNick
- The nick of the sender.address
- The address to connect to.port
- The port number to connect to.
IOException
- If the connection cannot be made.protected DccChat(PircBot bot, String sourceNick, Socket socket) throws IOException
bot
- An instance of the underlying PircBot.sourceNick
- The nick of the user we are sending the request to.socket
- The socket which will be used for the DCC CHAT session.
IOException
- If the socket cannot be read from.Method Detail |
public String readLine() throws IOException
IOException
- If an I/O error occurs.public void sendLine(String line) throws IOException
line
- The line of text to be sent. This should not include
linefeed characters.
IOException
- If an I/O error occurs.public void close() throws IOException
IOException
- If an I/O error occurs.
|
PircBot Java IRC Bot | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |