-
Notifications
You must be signed in to change notification settings - Fork 8
Server structure
clonejo edited this page Mar 13, 2012
·
5 revisions
This is not a final state, but a merely a proposal.
- one process listening for new connections
- per client:
- one process for receiving packets, notifies chunk and entity manager of position updates
- one process for managing chunks
- knows which chunks each client has loaded
- sends chunks to client / unloads chunks from client according to position updates
- one process for managing entities
- knows which entities each client has loaded
- informs clients about entities near, unloads entities from clients if necessary, according to position updates
- ets table for storing a list of clients (player name, receiving process id, socket for sending packets)