private static class UDPIoChannelTest.ServerMainThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
buf
Array for data.
|
private java.nio.channels.DatagramChannel |
channel
Stores the underlying server socket.
|
private boolean |
ready
Stores if this thread is ready for accepting connections.
|
| Constructor and Description |
|---|
ServerMainThread()
Creates a new server thread on the given socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Executes the thread, i.e. waits for incoming connections.
|
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, yieldprivate java.nio.channels.DatagramChannel channel
private boolean ready
private java.nio.ByteBuffer buf
public ServerMainThread()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread