gopenfusion/shard
CPunch c0ba365cf5 CNPeer/Service refactor
- each CNPeer is given a unique chan *protocol.Event to pass events to
the service.handleEvents() loop. this is now passed to CNPeer.Handler()
as opposed to NewCNPeer().
- service has basically been rewritten. handleEvents() main loop uses
reflect.SelectCase() now to handle all of the eRecv channels for each
peer
- new protocol Event type: EVENT_CLIENT_CONNECT
- Added service_test.go; blackbox-styled testing like the others.
TestService() starts a service and spins up  a bunch of dummy peers
and verifies that each packet sent causes the corresponding packet
handler to be called.
2023-11-29 19:57:45 -06:00
..
chat.go holy refactor 2023-11-27 21:23:28 -06:00
entitymanager.go fix: Chunks are now goroutine safe 2023-11-21 01:49:57 -06:00
join.go holy refactor 2023-11-27 21:23:28 -06:00
movement.go holy refactor 2023-11-27 21:23:28 -06:00
npcloader.go moved 'core' to 'internal' 2023-08-23 18:16:24 -05:00
shardserver.go CNPeer/Service refactor 2023-11-29 19:57:45 -06:00