TCP + UDP, CLIENT + SERVER model

Miscellaneous Forums/General Discussion/TCP + UDP, CLIENT + SERVER model

well, TCP works for chat. And i can write it so its non-blocking.


that would be great if this would be possible. Not sure if it is when you remain on pure socket.
But if you do, I would suggest having a look at Vertex' BNetEx. It does not more than wrap the sockets into UDP and TCP stream and add the needed "surrounding" to make them work as there are things that must be met for them to work when used in real cases on varying systems.

PS: ENet is actually quite unlimited. Its a simple host - host (point <-> point) connection using UDP with ordered packet send. the reliability can be enabled where needed which allows very flexible performance - latency throttling.