| Package | Description |
|---|---|
| com.esotericsoftware.kryonet | |
| com.esotericsoftware.kryonet.rmi | |
| com.esotericsoftware.kryonet.util |
| Modifier and Type | Class and Description |
|---|---|
class |
Client
Represents a TCP and optionally a UDP connection to a
Server. |
| Modifier and Type | Method and Description |
|---|---|
Connection[] |
Server.getConnections()
Returns the current connections.
|
protected Connection |
Server.newConnection()
Allows the connections used by the server to be subclassed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Listener.connected(Connection connection)
Called when the remote end has been connected.
|
void |
Listener.QueuedListener.connected(Connection connection) |
void |
Listener.disconnected(Connection connection)
Called when the remote end is no longer connected.
|
void |
Listener.QueuedListener.disconnected(Connection connection) |
void |
Listener.idle(Connection connection)
Called when the connection is below the
idle threshold. |
void |
Listener.QueuedListener.idle(Connection connection) |
Object |
KryoSerialization.read(Connection connection,
ByteBuffer buffer) |
Object |
JsonSerialization.read(Connection connection,
ByteBuffer buffer) |
Object |
Serialization.read(Connection connection,
ByteBuffer buffer) |
void |
Listener.received(Connection connection,
Object object)
Called when an object has been received from the remote end of the connection.
|
void |
Listener.ReflectionListener.received(Connection connection,
Object object) |
void |
Listener.QueuedListener.received(Connection connection,
Object object) |
void |
KryoSerialization.write(Connection connection,
ByteBuffer buffer,
Object object) |
void |
JsonSerialization.write(Connection connection,
ByteBuffer buffer,
Object object) |
void |
Serialization.write(Connection connection,
ByteBuffer buffer,
Object object) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
RemoteObject.getConnection()
Returns the local connection for this remote object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectSpace.addConnection(Connection connection)
Allows the remote end of the specified connection to access objects registered in this ObjectSpace.
|
static RemoteObject |
ObjectSpace.getRemoteObject(Connection connection,
int objectID,
Class... ifaces)
Returns a proxy object that implements the specified interfaces.
|
static <T> T |
ObjectSpace.getRemoteObject(Connection connection,
int objectID,
Class<T> iface)
Identical to
ObjectSpace.getRemoteObject(Connection, int, Class...) except returns the object cast to the specified interface
type. |
protected void |
ObjectSpace.invoke(Connection connection,
Object target,
ObjectSpace.InvokeMethod invokeMethod)
Invokes the method on the object and, if necessary, sends the result back to the connection that made the invocation
request.
|
void |
ObjectSpace.removeConnection(Connection connection)
Removes the specified connection, it will no longer be able to access objects registered in this ObjectSpace.
|
| Constructor and Description |
|---|
ObjectSpace(Connection connection)
Creates an ObjectSpace with the specified connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TcpIdleSender.idle(Connection connection) |
Copyright © 2014. All Rights Reserved.