UDP Support

born2make.happy
Posts: 3
Joined: Mon Aug 06, 2018 10:24 am

UDP Support

Postby born2make.happy » Mon Aug 06, 2018 10:41 am

i want to know can anyone planning to add UDP Support alternatively then HTTP

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: UDP Support

Postby ESP_Sprite » Tue Aug 07, 2018 3:31 am

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...

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: UDP Support

Postby fly135 » Tue Aug 07, 2018 1:05 pm

HTTP is implemented by TCP, not UDP. Nobody supports HTTP over UDP.

John A

born2make.happy
Posts: 3
Joined: Mon Aug 06, 2018 10:24 am

Re: UDP Support

Postby born2make.happy » Fri Aug 10, 2018 9:24 am

I need to know Like HTTP streaming i want UDP Streaming..

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: UDP Support

Postby ESP_Sprite » Sat Aug 11, 2018 2:40 am

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)?

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: UDP Support

Postby fly135 » Sat Aug 11, 2018 4:26 pm

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.

Who is online

Users browsing this forum: No registered users and 129 guests