gopenfusion/internal
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
..
db use proper errors for db.Err 2023-11-29 19:52:10 -06:00
entity oh, this is safe actually 2023-11-28 21:21:24 -06:00
protocol CNPeer/Service refactor 2023-11-29 19:57:45 -06:00
redis moved 'core' to 'internal' 2023-08-23 18:16:24 -05:00
service CNPeer/Service refactor 2023-11-29 19:57:45 -06:00