class rcListeningThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.concurrent.CountDownLatch |
startLatch
Let connect() know that the client has established a connection to this server.
|
(package private) int |
tcpPort
Tcp listening port.
|
(package private) int |
udpPort
Udp listening port.
|
| Constructor and Description |
|---|
rcListeningThread(RCServer server)
Constructor for regular clients.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTcpPort()
Get the TCP listening port of this server.
|
int |
getUdpPort()
Get the UDP listening port of this server.
|
(package private) void |
killThread()
Kills this thread.
|
void |
run()
This method is executed as a thread.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldint tcpPort
int udpPort
final java.util.concurrent.CountDownLatch startLatch
public rcListeningThread(RCServer server) throws cMsgException
server - RC server that created this objectcMsgException - if TCP socket cannot be created or cannot bind to a port, or
if UDP socket cannot be created.void killThread()
public int getTcpPort()
public int getUdpPort()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread