Page 1 of 1

UDP Support

Posted: Mon Aug 06, 2018 10:41 am
by born2make.happy
i want to know can anyone planning to add UDP Support alternatively then HTTP

Re: UDP Support

Posted: Tue Aug 07, 2018 3:31 am
by ESP_Sprite
Your question doesn't make much sense to me, sorry. UDP is supported using the standard Posix socket API, and I'm not sure how UDP could be an alternative to HTTP...

Re: UDP Support

Posted: Tue Aug 07, 2018 1:05 pm
by fly135
HTTP is implemented by TCP, not UDP. Nobody supports HTTP over UDP.

John A

Re: UDP Support

Posted: Fri Aug 10, 2018 9:24 am
by born2make.happy
I need to know Like HTTP streaming i want UDP Streaming..

Re: UDP Support

Posted: Sat Aug 11, 2018 2:40 am
by ESP_Sprite
That does not make sense; UDP is packet-based (without guaranteed delivery or reordering prevention) so per definition not a stream. Can you expand a bit more on what you're actually trying to do? As in: can you describe the project you're trying to use this for, and why you think you need UDP instead of HTTP (or something else, like raw TCP sockets)?

Re: UDP Support

Posted: Sat Aug 11, 2018 4:26 pm
by fly135
born2make.happy wrote:I need to know Like HTTP streaming i want UDP Streaming..
1) Create a datagram socket
optional) Bind it to an interface, or call connect to set target address.
2) Call sendto over and over.

Now you are streaming datagram packets.