| Modifier and Type | Method and Description |
|---|---|
List<Session> |
Server.getSessions()
Gets all sessions belonging to this server.
|
List<Session> |
AbstractServer.getSessions() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractServer.addSession(Session session) |
void |
AbstractServer.removeSession(Session session) |
| Modifier and Type | Method and Description |
|---|---|
Session |
SessionRemovedEvent.getSession()
Gets the session involved in this event.
|
Session |
SessionAddedEvent.getSession()
Gets the session involved in this event.
|
| Constructor and Description |
|---|
SessionAddedEvent(Server server,
Session session)
Creates a new SessionAddedEvent instance.
|
SessionRemovedEvent(Server server,
Session session)
Creates a new SessionRemovedEvent instance.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
PacketSendingEvent.getSession()
Gets the session involved in this event.
|
Session |
ConnectedEvent.getSession()
Gets the session involved in this event.
|
Session |
PacketReceivedEvent.getSession()
Gets the session involved in this event.
|
Session |
PacketSentEvent.getSession()
Gets the session involved in this event.
|
Session |
DisconnectingEvent.getSession()
Gets the session involved in this event.
|
Session |
PacketErrorEvent.getSession()
Gets the session involved in this event.
|
Session |
DisconnectedEvent.getSession()
Gets the session involved in this event.
|
| Constructor and Description |
|---|
ConnectedEvent(Session session)
Creates a new ConnectedEvent instance.
|
DisconnectedEvent(Session session,
String reason)
Creates a new DisconnectedEvent instance.
|
DisconnectedEvent(Session session,
String reason,
Throwable cause)
Creates a new DisconnectedEvent instance.
|
DisconnectingEvent(Session session,
String reason)
Creates a new DisconnectingEvent instance.
|
DisconnectingEvent(Session session,
String reason,
Throwable cause)
Creates a new DisconnectingEvent instance.
|
PacketErrorEvent(Session session,
Throwable cause)
Creates a new SessionErrorEvent instance.
|
PacketReceivedEvent(Session session,
Packet packet)
Creates a new PacketReceivedEvent instance.
|
PacketSendingEvent(Session session,
Packet packet)
Creates a new PacketSendingEvent instance.
|
PacketSentEvent(Session session,
Packet packet)
Creates a new PacketSentEvent instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
PacketProtocol.newClientSession(Session session)
Called when a client session is created with this protocol.
|
abstract void |
PacketProtocol.newServerSession(Server server,
Session session)
Called when a server session is created with this protocol.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TcpClientSession |
class |
TcpServerSession |
class |
TcpSession |
| Constructor and Description |
|---|
TcpPacketCodec(Session session) |
TcpPacketCompression(Session session) |
TcpPacketEncryptor(Session session) |
TcpPacketSizer(Session session) |
Copyright © 2021. All rights reserved.