org.retro.gis
Class DccChat

java.lang.Object
  extended byorg.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)
           
 
Method Summary
 void accept()
           
 void close()
           
 java.io.BufferedReader getBufferedReader()
           
 java.io.BufferedWriter getBufferedWriter()
           
 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()
           
 java.lang.String readLine()
           
 void sendLine(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()