UDP Support
-
- Posts: 3
- Joined: Mon Aug 06, 2018 10:24 am
UDP Support
i want to know can anyone planning to add UDP Support alternatively then HTTP
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: UDP Support
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
HTTP is implemented by TCP, not UDP. Nobody supports HTTP over UDP.
John A
John A
-
- Posts: 3
- Joined: Mon Aug 06, 2018 10:24 am
Re: UDP Support
I need to know Like HTTP streaming i want UDP Streaming..
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: UDP Support
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
1) Create a datagram socketborn2make.happy wrote:I need to know Like HTTP streaming i want UDP Streaming..
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: Bing [Bot] and 304 guests