public class StreamingClient
extends java.lang.Thread
StreamingServer
.DataEntry
s, as well as
disconnect itself from the server.Constructor and Description |
---|
StreamingClient(java.net.Socket client,
NetworkProtocol protocol)
Creates a new
StreamingClient . |
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Lets the
StreamingClient disconnect itself from the
StreamingServer . |
void |
receiveHeader()
Lets the
StreamingClient receive the header, as specified by the
NetworkProtocol . |
void |
run() |
void |
rweceiveData(DataEntry entry)
|
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, yield
public StreamingClient(java.net.Socket client, NetworkProtocol protocol)
StreamingClient
.client
- Socket
the client is registered to.protocol
- the NetworkProtocol
to be used.public void rweceiveData(DataEntry entry)
entry
- to be received.public void receiveHeader()
StreamingClient
receive the header, as specified by the
NetworkProtocol
.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void disconnect()
StreamingClient
disconnect itself from the
StreamingServer
.