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.
|
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) |
java.lang.Object |
Serialization.read(Connection connection,
java.nio.ByteBuffer buffer) |
java.lang.Object |
JsonSerialization.read(Connection connection,
java.nio.ByteBuffer buffer) |
java.lang.Object |
KryoSerialization.read(Connection connection,
java.nio.ByteBuffer buffer) |
void |
Listener.received(Connection connection,
java.lang.Object object)
Called when an object has been received from the remote end of the connection.
|
void |
Listener.ReflectionListener.received(Connection connection,
java.lang.Object object) |
void |
Listener.QueuedListener.received(Connection connection,
java.lang.Object object) |
void |
Serialization.write(Connection connection,
java.nio.ByteBuffer buffer,
java.lang.Object object) |
void |
JsonSerialization.write(Connection connection,
java.nio.ByteBuffer buffer,
java.lang.Object object) |
void |
KryoSerialization.write(Connection connection,
java.nio.ByteBuffer buffer,
java.lang.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,
java.lang.Class... ifaces)
Returns a proxy object that implements the specified interfaces.
|
static <T> T |
ObjectSpace.getRemoteObject(Connection connection,
int objectID,
java.lang.Class<T> iface)
Identical to
ObjectSpace.getRemoteObject(Connection, int, Class...) except returns the object cast to the specified interface
type. |
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) |