|
Holger's Java API |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use NetConnection | |
|---|---|
| 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. |
| com.antelmann.timeregister | This package contains classes that implement a time register solution for a small business. |
| com.antelmann.util.logging | This package contains classes that implement a custom logging for this framework - separate from java.util.logging. |
| Uses of NetConnection in com.antelmann.game |
|---|
| Methods in com.antelmann.game with parameters of type NetConnection | |
|---|---|
void |
JPlayerClient.connectionLost(NetConnection con)
|
void |
GameServer.connectionLost(NetConnection con)
|
NetConnectionHandler |
GameServer.createHandler(NetConnection con)
|
void |
JPlayerClient.handleMessage(Object message,
NetConnection con)
|
void |
GameServer.handleMessage(Object message,
NetConnection con)
|
| Uses of NetConnection in com.antelmann.net |
|---|
| Classes in com.antelmann.net that implement NetConnection | |
|---|---|
class |
SecureConnection
SecureConnection is a small wrapper for NetConnection objects, which provides automatic encoding/decoding of messages. |
class |
SocketConnection
A SocketConnection provides simplified access to a remote process through a Socket connection. |
class |
SSLSocketConnection
An SSLSocketConnection provides simplified access to a remote process through an SSLSocket connection. |
| Methods in com.antelmann.net that return NetConnection | |
|---|---|
NetConnection |
NetConnectionServer.DefaultDispatcher.createConnection(Socket socket)
simply returns SocketConnection.createServerConnection(socket, handshake) |
NetConnection |
JMessenger.createConnection(Socket socket)
called internally to establish a connection |
NetConnection |
ConnectionDispatcher.createConnection(Socket socket)
produces a NetConnection based on the given socket. |
NetConnection |
MessageDelegator.getConnection()
|
NetConnection[] |
ChatServer.getConnections()
|
NetConnection |
SecureConnection.getEmbeddedConnection()
|
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 |
| Methods in com.antelmann.net that return types with arguments of type NetConnection | |
|---|---|
List<NetConnection> |
NetConnectionServer.getNetConnections()
returns an unmovifiable view of all NetConnections that have been created with this server (minus those that have been removed through removeInactiveConnections()) |
| Methods in com.antelmann.net with parameters of type NetConnection | |
|---|---|
void |
SimpleHandshake.clientHandshake(NetConnection con)
|
void |
Handshake.clientHandshake(NetConnection con)
performs a handshake for the given socket on behalf of a client |
void |
NetConnectionHandler.connectionLost(NetConnection connection)
called when a connection caused an IOException during reading or writing; the connection may not have been closed at this point. |
void |
NetConnectionAdapter.connectionLost(NetConnection connection)
closes the connection and ignores possible IOExceptions |
void |
JMessenger.connectionLost(NetConnection connection)
called internally to handle lost connections |
void |
JChat.connectionLost(NetConnection con)
|
void |
ChatServer.connectionLost(NetConnection con)
|
NetConnectionHandler |
NetConnectionServer.DefaultDispatcher.createHandler(NetConnection con)
uses the same handler (given in the constructor) for all connections |
NetConnectionHandler |
JMessenger.createHandler(NetConnection con)
|
NetConnectionHandler |
ConnectionDispatcher.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. |
NetConnectionHandler |
ChatServer.createHandler(NetConnection con)
|
void |
NetConnectionHandler.handleMessage(Object message,
NetConnection connection)
called when a message is received by the given NetConnection object |
void |
NetConnectionAdapter.handleMessage(Object message,
NetConnection connection)
|
void |
JMessenger.handleMessage(Object message,
NetConnection con)
called internally to handle messages |
void |
JChat.handleMessage(Object message,
NetConnection con)
|
void |
ChatServer.handleMessage(Object message,
NetConnection con)
|
void |
SimpleHandshake.serverHandshake(NetConnection con)
|
void |
Handshake.serverHandshake(NetConnection con)
performs a handshake for the given socket on behalf of a server |
| Constructors in com.antelmann.net with parameters of type NetConnection | |
|---|---|
MessageDelegator(NetConnection con,
NetConnectionHandler handler)
|
|
MessageDelegator(NetConnection con,
NetConnectionHandler handler,
Logger logger)
if logger is not null, it will be used to log established and closed connections |
|
SecureConnection(NetConnection con,
SynchronousKey key)
|
|
| Uses of NetConnection in com.antelmann.timeregister |
|---|
| Methods in com.antelmann.timeregister that return NetConnection | |
|---|---|
NetConnection |
PunchDBClient.getNetConnection()
|
| Methods in com.antelmann.timeregister with parameters of type NetConnection | |
|---|---|
void |
PunchDBServer.connectionLost(NetConnection con)
|
void |
PunchDBServer.handleMessage(Object msg,
NetConnection con)
|
void |
PunchDBClient.setNetConnection(NetConnection connection)
|
| Constructors in com.antelmann.timeregister with parameters of type NetConnection | |
|---|---|
PunchDBClient(NetConnection connection)
Deprecated. |
|
| Uses of NetConnection in com.antelmann.util.logging |
|---|
| Methods in com.antelmann.util.logging with parameters of type NetConnection | |
|---|---|
void |
SocketLogListener.connectionLost(NetConnection con)
|
void |
LogNetReceiver.connectionLost(NetConnection con)
connection is closed after logging an entry with Level.END |
void |
LogNetPropagator.connectionLost(NetConnection con)
simply removes inactive connections from its server's list |
void |
SocketLogListener.handleMessage(Object message,
NetConnection con)
|
void |
LogNetReceiver.handleMessage(Object msg,
NetConnection con)
if msg is a serialized LogEntry, it will be logged to the logger; everything except a serialized LogEntry is ignored (including exceptions). |
void |
LogNetPropagator.handleMessage(Object msg,
NetConnection con)
simply responds with a 'message received' object to enable connection verification and closes the connection on IOException |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||