gopenfusion/internal/protocol
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
..
cnpeer.go CNPeer/Service refactor 2023-11-29 19:57:45 -06:00
encrypt.go minor styling fix 2023-11-25 23:15:47 -06:00
event.go CNPeer/Service refactor 2023-11-29 19:57:45 -06:00
packet.go start packet_test.go; minor packet.go refactoring 2023-11-22 18:18:22 -06:00
pool.go holy refactor 2023-11-27 21:23:28 -06:00
protocol_test.go protocol_test: split TestPacketEncodeDecode 2023-11-26 16:58:33 -06:00
structs.go fix formatting 2023-09-18 21:09:20 -05:00