|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrero.dcc.ProtocolDCC
Field Summary | |
static int |
DCC_CHAT
|
static int |
DCC_RECEIVE
|
static int |
DCC_SEND
|
static int |
DCC_TIMEOUT
|
protected ProtocolDispatcher |
dispatcher
|
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
|
Constructor Summary | |
ProtocolDCC()
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DCC_SEND
public static final int DCC_RECEIVE
public static final int DCC_CHAT
public static final int STATE_WAIT
public static final int STATE_OPEN
public static final int STATE_CLOSED
public static final int DCC_TIMEOUT
protected String nickname
protected Socket socket
protected long idleTime
protected long startTime
protected HashMap eventData
protected ProtocolDispatcher dispatcher
protected int state
Constructor Detail |
public ProtocolDCC()
Method Detail |
public abstract int getTypeOfDCC()
public void close()
public int getState()
public String getRemoteAddress()
public int getLocalPort()
public int getPort()
public void announceFramework(ChatFramework f)
public abstract void run()
public boolean isConnected()
public String getNickname()
public long getIdleTime()
public long getStartTime()
public long getTotalTime()
public void setDCCSocket(Socket _socket)
public abstract void fireError(String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |