|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionDispatcher
used by a NetConnectionServer object to create a Thread that handles incoming connections
NetConnectionServer,
NetConnectionHandler,
NetConnection| Method Summary | |
|---|---|
NetConnection |
createConnection(Socket socket)
produces a NetConnection based on the given socket. |
MessageDelegator |
createDispatcher(NetConnection con,
NetConnectionHandler handler)
responsible for creating the delegator based on the created connection and the associated handler |
NetConnectionHandler |
createHandler(NetConnection con)
produces a NetConnectionHandler which will be started in a new Thread (created by the NetConnectionServer's ThreadFactory) to handle the given NetConnection and listens to messages. |
Handshake |
getHandshake()
returns a signature object used to identify the desired connection type handled by this ConnectionDispatcher object |
| Method Detail |
|---|
NetConnection createConnection(Socket socket)
throws IOException
IOExceptionSocketConnection.createServerConnection(Socket, Handshake)NetConnectionHandler createHandler(NetConnection con)
MessageDelegator
MessageDelegator createDispatcher(NetConnection con,
NetConnectionHandler handler)
Handshake getHandshake()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||