|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--jclass.SleepingThread
|
+--jclass.ServerUDPThread
A thread that runs as server on a specified port and accepts incomming
datagrams. It then puts the received datagram message, transformed into
a SimpleData object into a queue and also sets the .Created variable
according to the current time.
Written: Radu Sion
Version: 0.15
Source: ServerUDPThread.java
Visit
Smart Software
ServerTCPThread,
SimpleQueue,
Timer| Fields inherited from class jclass.SleepingThread |
DEFAULT_SLEEP |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
ServerUDPThread(int port,
int maxlen,
SimpleQueue dqueue,
Timer timebase,
long sleep)
Constructs a new thread object. |
|
| Method Summary | |
void |
run()
|
| Methods inherited from class jclass.SleepingThread |
getSleep,
mysleep,
pause,
pause,
setSleep |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
!-- ========= CONSTRUCTOR DETAIL ======== -->
| Constructor Detail |
public ServerUDPThread(int port,
int maxlen,
SimpleQueue dqueue,
Timer timebase,
long sleep)
port - Port on which to listen for connectionsdqueue - Queue where to put incomming datagramsmaxlen - Maximum length for datagrams (truncate if over)timebase - Timer to use when timing the received data objects| Method Detail |
public void run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||