Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Reliable UDP C++ Libraries

Tags:

c++

udp

I am in need of a reliable UDP library. The one I wrote does not work too well and I would like to see what a 3rd party can do in the same circumstances.

Enet will not work because of some "interesting" compile issues in xcode (I have another question on stack overflow about that).

Any suggestions for a portable, reliable UDP library would be greatly appreciated.

like image 590
EToreo Avatar asked May 30 '10 20:05

EToreo


People also ask

Can UDP be made reliable?

UDP uses a simple transmission model without implicit handshaking techniques for providing reliability and ordering of packets. Thus, UDP provides an unreliable service and datagrams may arrive out of order, appear duplicated, or go missing without notice.

What is ENet C++?

Description. ENet's purpose is to provide a relatively thin, simple and robust network communication layer on top of UDP (User Datagram Protocol). The primary feature it provides is optional reliable, in-order delivery of packets, and fragmentation.

Is UDP fast and reliable?

UDP by itself isn't reliable. The data acknowledge/retransmission functions have to occur at a higher (i.e. application) level. TFTP is a good example of that.


1 Answers

Try boost::asio or ACE. I would recommend the former over the latter.

like image 179
Emile Cormier Avatar answered Sep 22 '22 00:09

Emile Cormier