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

ReceiveFromAsync Example

Does any one have an example for ReceiveFromAsync works with regard to UDP? i couldn't find any sample code. I can find a few TCP sample but msdn say 'The ReceiveFromAsync method is used primarily to receive data on a connectionless…
Nick Tucker
  • 323
  • 7
  • 14
3
votes
0 answers

Monitoring UDP socket in glib(mm) eats up CPU time

I have a GTKmm Windows application (built with MinGW) that receives UDP packets (no sending). The socket is native winsock and I use glibmm IOChannel to connect it to the application main loop. The socket is read with recvfrom. My problem is: this…
3
votes
1 answer

How do I send large files over hole punched (STUN) UDP without packet loss?

While looking for ICE/STUN libraries for a peer-to-peer Java application, I ran into a problem. I needed to be able to ensure reliable delivery. All Java ICE libraries that I could find offered UDP hole punching (via the STUN protocol), but not TCP…
user4691169
3
votes
1 answer

Get TCP/UDP Tables in Linux

Is there a way to get a list of tcp, udp connections and processes they are associated with? I did this in windows by using "GetExtendedTcpTable()" and "GetExtendedUdpTable()" And i want to achieve the same thing in linux. Can someone help? thank…
user2389323
  • 769
  • 2
  • 10
  • 22
3
votes
2 answers

app get stuck at serverSocket.accept() and gives bind exception address already in use on the second call for the thread

I have two problems with an app that i have built for socket communication, first I'll try to explain what the app does and then I'll go into the details of those two problems. First I click on a button, which starts a thread, which sends a…
Ahmad Sanie
  • 3,678
  • 2
  • 21
  • 56
3
votes
0 answers

sockets-for-pcl doesn't multicast as expected

I wanted to experiment with UDP multicasting on WP8.1 and found this library on nuget. I have created 2 apps, one on WP8.1 and one on desktop, I will provide only C# code as WPF is irrelevant here. WP8.1: public sealed partial class MainPage :…
Daniel Gruszczyk
  • 5,379
  • 8
  • 47
  • 86
3
votes
1 answer

wireshark capture filter for specific UDP bytes

I need a capture filter for wireshark that will match two bytes in the UDP payload. I've seen filters with UDP[8:4] as matching criteria but there was no explanation of the syntax, and I can't find it in any wireshark wiki (needle in the…
buzzard51
  • 1,372
  • 2
  • 23
  • 40
3
votes
2 answers

Is it possible to run Adobe Air application in the browser?

I'm following this tutorial that describes the way of connecting the node.js app with adobe action script 3.0. In that way I could present live video data (received by UDP from different application) to some other user. My question is - is it…
randomuser1
  • 2,733
  • 6
  • 32
  • 68
3
votes
1 answer

Is it possible to send UDP stream to browser?

On a college project I need to stream videos from a server to a web client using UDP protocol. I've been searching everywhere but haven't found a solution.
Diego
  • 63
  • 1
  • 5
3
votes
2 answers

Why is UDP socket identified by destination IP address and destination port?

According to "Computer networking: a top-down approach", Kurose et al., a UDP socket is fully identified by destination IP and destination port. Why do we need destination IP here? I thought UDP only need the destination port for the demultiplexing.
Jason Yang
  • 554
  • 7
  • 25
3
votes
3 answers

android java camera capture from asynctask

I am trying to do a code in an asynctask that takes a picture from the camera and send it to a server over UDP 100 times. However, the PictureCallback isn't called. Can someone please help me? this is what i tried: public class MainAsyncTask extends…
eyal
  • 31
  • 2
3
votes
1 answer

How does the server know whether it's a UDP or a TCP segment?

I'm just curious about how the server knows if the received segment is a UDP or a TCP segment, especially when the listening port can listen on both UDP and TCP. I know the client can use SOCK_DGRAM to generate UDP segments and SOCK_STREAM for TCP…
vincentvangaogh
  • 354
  • 3
  • 11
3
votes
2 answers

python graypy simply not sending

import logging import graypy my_logger = logging.getLogger('test_logger') my_logger.setLevel(logging.DEBUG) handler = graypy.GELFHandler('my_graylog_server', 12201) my_logger.addHandler(handler) my_adapter =…
Ohad Perry
  • 1,315
  • 2
  • 15
  • 26
3
votes
0 answers

CFSocketCreate request is not going via UDP

I have used below code to create socket. CFSocketRef socket = CFSocketCreate(kCFAllocatorDefault, PF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, NULL, NULL); I have given SOCK_DGRAM, IPPROTO_UDP as parameters to go request via UDP, But still request is going…
RXGangam
  • 199
  • 12
3
votes
2 answers

Why UDP does not employ the path MTU?

According to my knowledge, UDP does not use the path MTU to avoid fragmentation which however TCP does. I am trying to come up a reason to this particular design. TCP needs to avoid fragmentation because it has to retransmit the whole datagram even…
Jichao
  • 40,341
  • 47
  • 125
  • 198