willardf / Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection-oriented, message-based communication via RUDP.
MIT License
385 stars 60 forks source link

Add Lockless DTLS #51

Open willardf opened 1 year ago

willardf commented 1 year ago

I'll describe this in more detail when I get a chance, but it's based on @Mukikaizoku's outline for message queues. The big refactor is actually combining the PeerData and DtlsServerConnection classes. This allows for a lot more certainty around adding and removing connections during handshake. There is also a couple of new concurrent set structures which allows us to either cycle connections across multiple threads or assert thread affinity.

WIP stuff: