|
Cliser | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cliser.Communicator | +--cliser.TCPCommunicator | +--cliser.ServerTCPCommunicator
Constructor Summary | |
ServerTCPCommunicator(int port)
explicit constructor |
Method Summary | |
abstract TCPCommunicator |
accept()
abstract method for a server Communicator to accept connections PRE: Some client is going to connect to me |
java.net.ServerSocket |
getServerSocket()
myServerSocket accessor |
protected java.net.Socket |
initSocket()
definition of abstract TCPCommunicator.initSocket() POST: mySocket == null (mySocket will be set by abstract accept()). |
Methods inherited from class cliser.TCPCommunicator |
finalize,
getLocalHost,
getLocalPort,
getRemoteHost,
getRemotePort,
getSocket,
initReaderAndWriter,
receive,
send,
setSocket |
Methods inherited from class cliser.Communicator |
getPort,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ServerTCPCommunicator(int port)
Method Detail |
protected java.net.Socket initSocket()
public abstract TCPCommunicator accept()
public final java.net.ServerSocket getServerSocket()
|
Cliser | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |