Commit Graph

7 Commits

Author SHA1 Message Date
Oscar Beaumont
5bc234ae87 [ENG-414] P2P Shutdown (#688)
* `Event::Shutdown` in P2P system

* Mdns shutdown broadcast + await shutdown

* Fix mdns service name & prevent poll after shutdown
2023-04-11 15:05:50 +00:00
Oscar Beaumont
b1d619c42f Add MetadataManager into sd-p2p (#686)
* Add `MetadataManager` into sd-p2p

* Add `update_metadata` helper to P2P manager

* Praise Clippy our lord and saviour

* change mdns advertisement log level

* Casually broke Linux
2023-04-11 10:20:14 +08:00
Oscar Beaumont
9719940552 Typesafe stream handling (#603)
* typesafe stream handling
Now it's impossible for your to respond to a broadcast stream. Previously this would just fail due to the TCP connection having been closed by the sender.

* remove connected_peers state from `SpaceTime`

* use `OutEvent` instead of `tokio::spawn` for `SpaceTime` events

* Polling for events > tokio::mpsc

* extend max length of sync messages to ~4GB + broadcast done message

* Fix "actOS" operating system decode error
2023-03-13 16:58:35 +08:00
Oscar Beaumont
e696db186b P2P Core (#597)
* implement space time

* I love it when my code works
2023-03-09 03:18:33 +08:00
Jamie Pine
b1cedc75a4 (hotfix) p2p preventing compile 2022-10-08 11:30:17 -07:00
Oscar Beaumont
dba39047ae fix major bugs in p2p PR 2022-10-07 05:51:40 +08:00
Oscar Beaumont
2d2d7223d2 merge in P2P code 2022-10-07 05:32:45 +08:00