java.lang.Object
java.net.ServerSocket
org.zazof.jtegServer.ServerConnection
- All Implemented Interfaces:
- java.lang.Runnable
- public class ServerConnection
- extends java.net.ServerSocket
- implements java.lang.Runnable
This class listens for incoming connections from clients
|
Method Summary |
void |
run()
This method will be called by whoever wishes to run your class
implementing Runnable. |
| Methods inherited from class java.net.ServerSocket |
accept, bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
$port
private int $port
$controller
private ConnectionController $controller
$thread
private java.lang.Thread $thread
$debug
private static final boolean $debug
- See Also:
- Constant Field Values
ServerConnection
public ServerConnection(int port,
ConnectionController controller)
throws java.io.IOException
- creates a server which listens on a specific port
run
public void run()
- Description copied from interface:
java.lang.Runnable
- This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.
- Specified by:
run in interface java.lang.Runnable