|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eyebolt.iplib.ListenThread
Thread to block on incoming connections.
Field Summary | |
static int |
ERR_PORT_IN_USE
Error returned by listen when the port is not available |
private IPManager |
ipmanager
parent ipmanager |
(package private) boolean |
keepGoing
flag to stop the listen |
private IPAddress |
listenAddress
address (port) on which to listen |
(package private) java.net.ServerSocket |
listenSocket
server socket |
static int |
OK
Value returned when an operation runs successfully |
private IPCallback |
onreceive
|
private int |
status
status of the thread |
static int |
SUCCESS
Value returned when an operation runs successfully |
private java.lang.Thread |
thread
actual thread running |
Constructor Summary | |
ListenThread(IPAddress address,
IPManager ipm,
IPCallback cb)
Constructor - will listen on the given address |
Method Summary | |
IPAddress |
getAddress()
return listen address |
int |
getStatus()
return status code |
void |
run()
Main processing method for the ListenThread object |
void |
stopListen()
stop listening |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int SUCCESS
public static final int OK
public static final int ERR_PORT_IN_USE
java.net.ServerSocket listenSocket
boolean keepGoing
private IPManager ipmanager
private int status
private IPCallback onreceive
private java.lang.Thread thread
private IPAddress listenAddress
Constructor Detail |
public ListenThread(IPAddress address, IPManager ipm, IPCallback cb)
address
- Description of Parameteripm
- Description of Parametercb
- Description of ParameterMethod Detail |
public int getStatus()
public IPAddress getAddress()
public void stopListen()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |