Commit Graph

15 Commits

Author SHA1 Message Date
Derrick Hammer 7d34ac37db
fix: flag abused before closing 2024-01-15 13:40:41 -05:00
Derrick Hammer 944067522a
feat: add abused to peer so we can know when a peer has abused us and not log errors for them 2024-01-15 13:36:13 -05:00
Derrick Hammer fc10a265a7
feat: implement GetIP 2024-01-15 11:15:11 -05:00
Derrick Hammer 883f50b198
feat: add incoming and outgoing peer blocking to handle abuse 2024-01-15 10:54:31 -05:00
Derrick Hammer 3d41119f74
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done 2024-01-13 11:22:01 -05:00
Derrick Hammer 1fe2940fc4
refactor: send every message in a coroutine and manage errors in a dedicated channel 2024-01-08 12:08:15 -05:00
Derrick Hammer b41c763be8
refactor: add getter/setter for isConnected connectionURIs 2024-01-08 09:52:57 -05:00
Derrick Hammer a785031255
refactor: add getter/setter for isConnected 2024-01-08 08:44:47 -05:00
Derrick Hammer 33e2ef0d61
test: need to generate mock for peer 2024-01-08 05:32:06 -05:00
Derrick Hammer b8a38fde66
fix: dont return by ref 2024-01-07 06:51:40 -05:00
Derrick Hammer 8b2756caad
fix: need to pass by ref 2024-01-07 06:49:27 -05:00
Derrick Hammer 0028483817
refactor: use lowercase socket 2024-01-07 06:47:19 -05:00
Derrick Hammer 2e9b07c6bd
refactor: dont use pointers with interfaces 2024-01-07 06:47:01 -05:00
Derrick Hammer 52b7426a7a
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer 2024-01-07 06:33:32 -05:00
Derrick Hammer 8c29a284ce
feat: wip networking 2024-01-06 06:34:15 -05:00