Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jtegServer
Class ServerConnection  view ServerConnection download ServerConnection.java

java.lang.Object
  extended byjava.net.ServerSocket
      extended byorg.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


Field Summary
private  ConnectionController $controller
           
private static boolean $debug
           
private  int $port
           
private  java.lang.Thread $thread
           
 
Fields inherited from class java.net.ServerSocket
 
Constructor Summary
ServerConnection(int port, ConnectionController controller)
          creates a server which listens on a specific port
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

$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
Constructor Detail

ServerConnection

public ServerConnection(int port,
                        ConnectionController controller)
                 throws java.io.IOException
creates a server which listens on a specific port

Method Detail

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