rero.dcc
public abstract class ProtocolDCC extends Object
Field Summary | |
---|---|
protected ProtocolDispatcher | dispatcher |
static int | DCC_CHAT |
static int | DCC_RECEIVE |
static int | DCC_SEND |
static int | DCC_TIMEOUT |
protected HashMap | eventData |
protected long | idleTime |
protected String | nickname |
protected Socket | socket |
protected long | startTime |
protected int | state |
static int | STATE_CLOSED |
static int | STATE_OPEN |
static int | STATE_WAIT |
Method Summary | |
---|---|
void | announceFramework(ChatFramework f) tells the protocol implementation class that we are ready to rock and roll, Socket is assumed to be connected. |
void | close() |
abstract void | fireError(String text) |
long | getIdleTime() returns the number of milliseconds since this chat has been active |
int | getLocalPort() |
String | getNickname() returns the nickname of who we are having a *chat* with |
int | getPort() |
String | getRemoteAddress() |
long | getStartTime() return time that this chat started |
int | getState() |
long | getTotalTime() return total amount of time this chat has been active (in milliseconds) |
abstract int | getTypeOfDCC() return the type of DCC based on a constant |
boolean | isConnected() returns wether or not the socket is connected |
abstract void | run() |
void | setDCCSocket(Socket _socket) |