public class UDPServerTransporter extends java.lang.Thread implements ServerTransporter
| Constructor and Description |
|---|
UDPServerTransporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ServerTransporterListener _listener) |
void |
bind(int port) |
void |
dispose() |
int |
getConnectionCount() |
void |
removeListener(ServerTransporterListener _listener) |
void |
run() |
void |
send(byte[] _data) |
void |
sendToAll(byte[] _data,
java.lang.Object _excludeId) |
void |
sendToOne(byte[] _data,
java.lang.Object _id) |
void |
setTargetPort(int _targetPort) |
void |
unbind() |
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, yieldpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void send(byte[] _data)
throws java.io.IOException
java.io.IOExceptionpublic void setTargetPort(int _targetPort)
public void dispose()
dispose in interface ServerTransporterpublic void bind(int port)
throws RCPException
bind in interface ServerTransporterRCPExceptionpublic void unbind()
unbind in interface ServerTransporterpublic void sendToOne(byte[] _data,
java.lang.Object _id)
sendToOne in interface ServerTransporterpublic void sendToAll(byte[] _data,
java.lang.Object _excludeId)
sendToAll in interface ServerTransporterpublic int getConnectionCount()
getConnectionCount in interface ServerTransporterpublic void addListener(ServerTransporterListener _listener)
addListener in interface ServerTransporterpublic void removeListener(ServerTransporterListener _listener)
removeListener in interface ServerTransporter