Questions tagged [udp]

User Datagram Protocol is one of the messaging protocols of the IP protocol stack. With UDP, computer applications can send messages to other hosts on an Internet Protocol (IP) network without requiring prior communications to set up special transmission channels or data paths.

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

UDP assumes that error checking and correction is either not necessary or performed in the application or at the hardware level (layer 1 and 2), avoiding the overhead of such processing at the network interface level.

Time-sensitive applications often use UDP because dropping packets is preferable to waiting for delayed packets, which may not be an option in a real-time system.

There is more information at the Wikipedia article on UDP.

10654 questions
3
votes
2 answers

order reactive extension events

I am receiving messages on UDP in multiple threads. After each reception I raise MessageReceived.OnNext(message). Because I am using multiple threads the messages raised unordered which is a problem. How can I order the raise of the messages by the…
ittay
  • 519
  • 5
  • 15
3
votes
1 answer

C++ UDP recvfrom WSAGetLastError 10014

This may be a duplicate question but I have read the other threads and solutions and found nothing missing in the code. Something is there which I am not able to figure out. Below is the code for a UDP server #pragma once #pragma comment( linker,…
user3275095
  • 1,605
  • 4
  • 24
  • 36
3
votes
2 answers

Listening for a UDP unicast reply to a UDP multicast message

I am trying to implement a very simple upnp controller on linux, so that I can control a device which otherwise requires proprietary software. The docs say that I need to send a UDP multicast request of a specific form (see the "M-SEARCH" string in…
Tony
  • 1,645
  • 1
  • 10
  • 13
3
votes
1 answer

How does chromecast connects to other devices?

How do devices like Chromecast get discovered by other devices without connecting to the same local network. I am aware of protocols like ssdp, dial, and mdns, but all of those protocols require you to be connected to the same local network. For…
user2758113
  • 1,001
  • 1
  • 13
  • 25
3
votes
0 answers

How to get UPD packet when application is in background

I am new in iOS and now i got stuck so i thought i should post some thing over her may be some one help me out i am developing iOS app and my app is able to send udp packet over local network every thing is working fine application can send and…
3
votes
2 answers

UDP Client on Android

I have made an UDP Server on a Wi-Fi demo board and test it using and android App (UDP Sender). I created my own UDP client apps on Android, but it doesn't work. I created and configured well the socket port and the IPaddress but the app doesn't…
Abdel Z
  • 51
  • 1
  • 1
  • 6
3
votes
0 answers

Very high UDP packages loss on iOs (GCDAsyncUdpSockets)

I am working on an iPhone app for controlling physical hardware. The routine is as follows: app sends a specific 8-bytes "wake up" datagram on the broadcast channel, on port 8089; the message is repeatedly sent. external hardware, which is…
Davide
  • 31
  • 1
3
votes
3 answers

Python socket error on UDP data receive. (10054)

I currently have a problem using UDP and Python socket module. We have a server and clients. The problem occurs when we send data to a user. It's possible that user may have closed their connection to the server through a client crash, disconnect by…
Charles
  • 91
  • 1
  • 1
  • 3
3
votes
2 answers

Does libcurl able to send a http message over UDP?

I developed a program that makes parameters tracking. I want to inform a server with a http message over udp when a parameter value changes. I want to use libcurl for that. Does libcurl able to send a http message over UDP?
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
3
votes
1 answer

Send XML data by UDP

I am writing a program that on input sends out a message with some data. I want to be able to send out a udp message by multicast, and I want to be able to send this message out in an xml format. Currently my program is written in qt, and if…
user3830784
  • 355
  • 3
  • 17
3
votes
1 answer

How often should UDP packets be sent?

I have written an application in Python 2.7 and I'm using UDP sockets to implement networking capabilities. Though my application is not a game, I would consider it a game for networking purposes because the screen is redrawn 60 times per second. I…
user3745189
  • 521
  • 1
  • 7
  • 17
3
votes
0 answers

Encrypted UDP (DTLS) in Akka

I need to create a server-clients application in Scala/Akka for encrypted live video streaming. Since loosing some packets doesn't matter, but speed (latency) is crucial, UDP is much better than TCP. As far as I know Akka/Scala/Java don't support…
Quizzie
  • 879
  • 4
  • 15
3
votes
1 answer

Reading UDP Packets

I am having some trouble dissecting a UDP packet. I am receiving the packets and storing the data and sender-address in variables 'data' and 'addr' with: data,addr = UDPSock.recvfrom(buf) This parses the data as a string, that I am now unable to…
3
votes
1 answer

BeagleBone Black: Qt 5.3 fails to send datagrams in UDP

I am working on BeagleBone Black (running Debian Linux) and I am trying to send some datagrams to broadcast via UDP using Qt 5.3. Here is my code: #include #include #include #include int…
Morix Dev
  • 2,700
  • 1
  • 28
  • 49
3
votes
1 answer

Icecast transport layer protocol - TCP or UDP?

I don't seem to find a answer, so I'm asking you. Does a stock Icecast2 server use TCP or UDP to broadcast the streaming data? I know that it uses a custom HTTP based Application Layer protocol, so one might think its TCP, but on the other hand it…
DontMind
  • 89
  • 1
  • 10