willardf / Hazel-Networking

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

Does Hazel support TCP? #59

Open Lisk90 opened 1 year ago

Lisk90 commented 1 year ago

I see in the included .docx (Hazel Networking Protocol.docx in the root) that there is a TCP implementation: https://i.imgur.com/b8rYxsN.png

However, this isn't listed in the features list on the main repo page.

Wondering if TCP is supported? And if not, what should I be aware of when working with RUDP, as someone with a TCP background?

willardf commented 10 months ago

Hello! TCP is not supported. In the old days, the previous maintainer supported it, but I wanted to descope it to a "highest performance self", which TCP doesn't accomplish because TCP implements reliability features with different goals in mind.

When working with RUDP, the biggest things to keep in mind is:

That's more or less it. RUDP seeks to recreate TCP features in a more flexible/optional manner. So you should feel at home with it's connection-based interface and when sending reliable messages.