|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.plugin.overnet.net.OvernetCore
public class OvernetCore
Epitomizes a connection to the overnet core.
This class handles all the low level writing and reading of messages. The
transitions from one connection state to the next are handled in its
private subclass StateMachine
.
Field Summary | |
---|---|
static byte |
ED2K_BYTE
|
Constructor Summary | |
---|---|
OvernetCore(MessageHandler handler)
|
Method Summary | |
---|---|
void |
addStateListener(StateListener listener)
|
void |
connect()
Connect to the overnet core. |
void |
connect(int delay)
Connect to core after a certain delay. |
java.lang.String |
getDescription()
|
State |
getState()
|
void |
removeStateListener(StateListener listener)
|
static void |
send(OvernetClientMessage cm)
Sends a message to the overnet core in a non-blocking way. |
void |
stop()
Stops the connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte ED2K_BYTE
Constructor Detail |
---|
public OvernetCore(MessageHandler handler)
Method Detail |
---|
public void connect()
public void connect(int delay)
public static void send(OvernetClientMessage cm)
public void stop()
public void addStateListener(StateListener listener)
public void removeStateListener(StateListener listener)
public State getState()
public java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |