|
Holger's Java API |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Handshake | |
|---|---|
| com.antelmann.game | This package contains packages to support game implementations. |
| com.antelmann.net | The classes in this package are designed to provide convenient access to Internet related functionality. |
| Uses of Handshake in com.antelmann.game |
|---|
| Fields in com.antelmann.game declared as Handshake | |
|---|---|
static Handshake |
GameServer.HANDSHAKE
this Handshake must be used when creating connections to this server |
| Methods in com.antelmann.game that return Handshake | |
|---|---|
Handshake |
GameServer.getHandshake()
|
| Uses of Handshake in com.antelmann.net |
|---|
| Classes in com.antelmann.net that implement Handshake | |
|---|---|
class |
SimpleHandshake
|
| Fields in com.antelmann.net declared as Handshake | |
|---|---|
static Handshake |
ChatServer.HANDSHAKE
|
protected Handshake |
SocketConnection.hs
|
| Methods in com.antelmann.net that return Handshake | |
|---|---|
Handshake |
SocketConnection.getHandshake()
|
Handshake |
SecureConnection.getHandshake()
|
Handshake |
NetConnectionServer.DefaultDispatcher.getHandshake()
returns the Handshake given in the constructor |
Handshake |
NetConnection.getHandshake()
returns the identification type object for this connection; this signature is the same on both sides of the connection. |
Handshake |
JMessenger.getHandshake()
|
Handshake |
ConnectionDispatcher.getHandshake()
returns a signature object used to identify the desired connection type handled by this ConnectionDispatcher object |
Handshake |
ChatServer.getHandshake()
|
| Methods in com.antelmann.net with parameters of type Handshake | |
|---|---|
static SSLSocketConnection |
SSLSocketConnection.createConnection(String hostname,
int port,
Handshake handshake)
returns a SocketConnection provided there is a Server listening at the specified location with the secified signature; note that this method is blocking. |
static SocketConnection |
SocketConnection.createConnection(String hostname,
int port,
Handshake hs)
returns a SocketConnection provided there is a Server listening at the specified location with the secified signature; note that this method is blocking. |
static SocketConnection |
SocketConnection.createServerConnection(int port,
Handshake hs)
|
static SocketConnection |
SocketConnection.createServerConnection(ServerSocket serverSocket,
Handshake hs)
waits and listens for a single connection to be made and returns a SocketConnection if the connection made matches the signature. |
static SocketConnection |
SocketConnection.createServerConnection(Socket socket,
Handshake hs)
creates a connection based on a socket that results from a ServerSocket.accept() |
static SSLSocketConnection |
SSLSocketConnection.createSSLServerConnection(int port,
Handshake handshake)
|
static NetConnection |
NetConnectionServer.waitForConnection(int port,
Handshake handshake,
int timeout)
listens for a single connection to be made and returns a NetConnection if the connection made matches the signature |
| Constructors in com.antelmann.net with parameters of type Handshake | |
|---|---|
NetConnectionServer.DefaultDispatcher(NetConnectionHandler handler,
Handshake handshake)
|
|
NetConnectionServer(int port,
NetConnectionHandler handler,
Handshake handshake)
each connection made will run in a separate thread that delegates every message received to the given handler |
|
NetConnectionServer(int port,
NetConnectionHandler handler,
Handshake handshake,
Logger logger)
each connection made will run in a separate thread that delegates every message received to the given handler; if logger is not null, it will be used to log both: connection and message handling |
|
SocketConnection(Socket socket,
Handshake hs)
|
|
SSLSocketConnection(SSLSocket socket,
Handshake handshake)
|
|
SSLSocketConnection(String hostname,
int port,
Handshake handshake)
called by createConnection(), createServerConnection(), or a subclass |
|
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||