Class | Description |
---|---|
ByteBufferReader | |
Client |
An object
|
NetworkManager | |
Protocol | |
QueryResponse |
This class stores the response generated for queries to the server.
|
Enum | Description |
---|---|
Client.CloseReason |
Key classes:
Class name | Structure | Scope | Content |
---|---|---|---|
NetworkManager | Singleton | All networks | Module management |
Protocol | Abstract modular | All clients for that protocol | A protocol type |
Client | Abstract Instantiated by Protocol | Per client | Protocol conversion |
SharedServerSocket | Abstract Inflexible implementations | All clients through that server socket | Internet-level protocol |
SessionHandler | Abstract Instantiated by SharedServerSocket | Per client | Internet-level protocol |
Player (not part of this package) | Instance | One server-side player from one or multiple clients | Game-level mechanism |
SharedServerSocket
s
UdpBufferThread
, then received by SharedUdpServerSocket
through tickingNetworkManager.adoptSession(org.projectnyx.network.ext.SessionHandler)
is called
per packet read to look for a suitable protocol. If no protocol is available, login packets are stacked. If a
protocol accepted this client, a protocol-dependent Client
object is created by the
protocol.Player
object is created or assigned
to act as the in-game entity controlled by this client (and other clients).Copyright © 2016. All rights reserved.