| |
|
| java.lang.Object java.lang.Thread org.datashare.UdpSocketServer
UdpSocketServer | public class UdpSocketServer extends Thread implements SocketServerInterface(Code) | | We need one of these for each UDP connection that clients might use
|
close | public void close()(Code) | | close the socket, stop any thread, and notify the server
|
closeSocket | public void closeSocket(UdpSocket socket)(Code) | | called by socket when it closes itself
|
getKeyValue | public String getKeyValue()(Code) | | returns our keyValue
|
getLocalPort | public int getLocalPort()(Code) | | return our local port
|
getReady | public boolean getReady()(Code) | | returns true if ready to receive connections
|
run | public void run()(Code) | | this method is where we receive data and establish new 'connections'
|
|
|
|