Commit graph

14 commits

Author SHA1 Message Date
Starbeamrainbowlabs da33a146e2
Manage duplicate connections more effectively.
Thebroadcast function now transparently avoids sending the same message 
to the same peer over multiple connections at once.
2022-02-21 21:55:20 +00:00
Starbeamrainbowlabs 1091f9c3c2
Exchange peerlists 2022-01-09 20:28:58 +00:00
Starbeamrainbowlabs 61b830121e
tweak comment 2022-01-09 17:47:19 +00:00
Starbeamrainbowlabs a9a7320a1e
Make disconnects graceful 2022-01-09 17:46:43 +00:00
Starbeamrainbowlabs 43fed309dc
Disconnect duplicate connections 2022-01-09 17:37:06 +00:00
Starbeamrainbowlabs 63b698573f
Debug connectiono system 2022-01-09 16:57:07 +00:00
Starbeamrainbowlabs 53b0d661a9
replace logging system
...I'm so picky
2022-01-09 16:30:42 +00:00
Starbeamrainbowlabs 306180d9d8
Another day, another set of bugs 2022-01-09 00:57:06 +00:00
Starbeamrainbowlabs c5e2d31c47
A bugfixing we are going.... not there just yet though 2022-01-08 23:47:52 +00:00
Starbeamrainbowlabs 19f2003fbf
Fix some bugs, write some comments 2022-01-08 21:37:03 +00:00
Starbeamrainbowlabs 135b2e8d1b
Write a bunch more glue code
....but it's all still untested. I'm getting kinda nervous here
2022-01-08 16:59:08 +00:00
Starbeamrainbowlabs cf7451dcf2
Wire up peer handing in PeerServer
Going to be a heck fo a stack trace if it crashes though.....

Agent → .... → PeerServer → Peer → Connection → FramedTransport → { 
rekey, StreamHelpers }
2021-10-19 02:36:22 +01:00
Starbeamrainbowlabs 32dec3049f
Peer: we can use async/await for the initial handshake
events.once(emitter, eventname) makes it so much more concise!
2021-10-09 18:13:34 +01:00
Starbeamrainbowlabs 6f181971e3
Implement simple peer system, but it's untested.
Next step is to exchange peers.
2021-10-09 18:00:54 +01:00