public class DccChat
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
accept()
Accept this DccChat connection.
|
void |
close()
Closes the DCC Chat connection.
|
java.io.BufferedReader |
getBufferedReader()
Returns the BufferedReader used by this DCC Chat.
|
java.io.BufferedWriter |
getBufferedWriter()
Returns the BufferedReader used by this DCC Chat.
|
java.lang.String |
getHostname()
Returns the hostname of the DCC Chat initiator.
|
java.lang.String |
getLogin()
Returns the login of the DCC Chat initiator.
|
java.lang.String |
getNick()
Returns the nick of the other user taking part in this file transfer.
|
long |
getNumericalAddress()
Returns the address of the sender as a long.
|
java.net.Socket |
getSocket()
Returns the raw Socket used by this DCC Chat.
|
java.lang.String |
readLine()
Reads the next line of text from the client at the other end of our DCC Chat
connection.
|
void |
sendLine(java.lang.String line)
Sends a line of text to the client at the other end of our DCC Chat
connection.
|
public void accept() throws java.io.IOException
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public void sendLine(java.lang.String line) throws java.io.IOException
line
- The line of text to be sent. This should not include
linefeed characters.java.io.IOException
- If an I/O error occurs.public void close() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public java.lang.String getNick()
public java.lang.String getLogin()
public java.lang.String getHostname()
public java.io.BufferedReader getBufferedReader()
public java.io.BufferedWriter getBufferedWriter()
public java.net.Socket getSocket()
public long getNumericalAddress()
PircBot Java IRC Bot.