|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jibble.pircbot.DccChat
This class is used to allow the bot to interact with a DCC Chat session.
Constructor Summary | |
DccChat(PircBot bot,
String sourceNick,
Socket socket)
This constructor is used after we have issued a DCC CHAT request to somebody. |
|
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 |
public DccChat(PircBot bot, String sourceNick, String address, int port) throws IOException
public DccChat(PircBot bot, String sourceNick, Socket socket) throws IOException
Method Detail |
public String readLine() throws IOException
IOException
public void sendLine(String line) throws IOException
line
- The line of text to be sent. This should not include
linefeed characters.
IOException
public void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |