A fairly large refactor of the networking system to make things neater. Almost all of the old free functions have been moved into impl blocks for a struct containing some relevant data. The old BoundedPlanetSendStream/BoundedPlanetReceiveStream wrappers are gone, replaced by Packet::send/Packet::receive methods.
Added a new SendEvent::TransferPacket variant. This is intended for very large data transfers which should not block sending of other packets. The sequence for this is:
Opens a new stream
Spans a new async task
Sends the packet on the new stream (in the async task)
A fairly large refactor of the networking system to make things neater. Almost all of the old free functions have been moved into impl blocks for a struct containing some relevant data. The old
BoundedPlanetSendStream
/BoundedPlanetReceiveStream
wrappers are gone, replaced byPacket::send
/Packet::receive
methods.Added a new
SendEvent::TransferPacket
variant. This is intended for very large data transfers which should not block sending of other packets. The sequence for this is: