Skip navigation links

Package org.projectnyx.network

Key classes:

See: Description

Package org.projectnyx.network Description

Key classes:

Class nameStructureScope Content
NetworkManagerSingletonAll networksModule management
ProtocolAbstract
modular
All clients for that protocol A protocol type
ClientAbstract
Instantiated by Protocol
Per clientProtocol conversion
SharedServerSocketAbstract
Inflexible implementations
All clients through that server socketInternet-level protocol
SessionHandlerAbstract
Instantiated by SharedServerSocket
Per clientInternet-level protocol
Player
(not part of this package)
InstanceOne server-side player from one or multiple clients Game-level mechanism

Login procedure

  1. Data enter through one of the SharedServerSockets
  2. NetworkManager.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.
  3. Subsequent packets are handled by the client directly.
  4. When enough data have been created, a Player object is created or assigned to act as the in-game entity controlled by this client (and other clients).
Skip navigation links

Copyright © 2016. All rights reserved.