org.retro.gis
Class DccChat
java.lang.Object
org.retro.gis.DccChat
- public class DccChat
- extends java.lang.Object
|
Constructor Summary |
DccChat(PircBot bot,
java.lang.String nick,
java.net.Socket socket)
|
DccChat(PircBot bot,
java.lang.String nick,
java.lang.String login,
java.lang.String hostname,
long address,
int port)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DccChat
public DccChat(PircBot bot,
java.lang.String nick,
java.lang.String login,
java.lang.String hostname,
long address,
int port)
DccChat
public DccChat(PircBot bot,
java.lang.String nick,
java.net.Socket socket)
throws java.io.IOException
accept
public void accept()
throws java.io.IOException
- Throws:
java.io.IOException
readLine
public java.lang.String readLine()
throws java.io.IOException
- Throws:
java.io.IOException
sendLine
public void sendLine(java.lang.String line)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getNick
public java.lang.String getNick()
getLogin
public java.lang.String getLogin()
- Returns the login of the DCC Chat initiator.
- Returns:
- the login of the DCC Chat initiator. null if we sent it.
getHostname
public java.lang.String getHostname()
- Returns the hostname of the DCC Chat initiator.
- Returns:
- the hostname of the DCC Chat initiator. null if we sent it.
getBufferedReader
public java.io.BufferedReader getBufferedReader()
getBufferedWriter
public java.io.BufferedWriter getBufferedWriter()