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
0 answers

Receiving broadcast UDP messages with android

I recently tried to port my application that requires receiving (udp) broadcast messages. My udp receiving code works on pc (windows/linux), but with android there seems to be some problem receiving broadcast messages, however, i seem to be able to…
Compvter
  • 27
  • 5
3
votes
0 answers

P2P UDP connection with STUN

Good day Everyone! I've been trying for quite a while to send packets p2p using UDP and GCDAsyncUDPSocket library. So i found an open source library to connect to STUN server and keep external port open. It works quite well and i've already had…
Morckovka
  • 103
  • 13
3
votes
1 answer

Message queuing protocols: PGM vs UDP

I need to have an intelligent conversation with several co-workers who have not yet been sold on embracing tried and trusted message queuing libraries such as MSMQ, ZeroMQ, RabbitMQ, etc and we need this type of messaging in our solution. But to be…
Klaus Nji
  • 18,107
  • 29
  • 105
  • 185
3
votes
1 answer

Send udp message outside of subnet

i am trying to communicate with FPGA board, on which basic UDP protocol was implemented. i use windows 7 PC, python 2.7.6 32 bit. my computer is connected to LAN network. automatically receives this IP (from ipconfig): IP 192.168.2.1, Subnet mask:…
user1952686
  • 339
  • 1
  • 4
  • 12
3
votes
1 answer

LuaSocket (UDP) not receiving datagrams

I'm experimenting with LuaSocket for a project I'm working on. I've chosen UDP as my protocol. Looking for docs and tutorials online, I've attempted to create a client-server pair for testing and learning. According to what I've read, the following…
account3r2
  • 43
  • 1
  • 5
3
votes
1 answer

The receiveBufferSize not being honored. UDP packet truncated

netty 4.0.24 I am passing XML over UDP. When receiving the UPD packet, the packet is always of length 2048, truncating the message. Even though, I have attempted to set the receive buffer size to something larger (4096, 8192, 65536) but it is not…
Chris M
  • 31
  • 3
3
votes
1 answer

UDP unconnected socket sending fails until it receives 1st datagram

I am using Winsock class CAsyncSocket in Windows 7 to create a UDP chat program. It simply opens an unconnected UDP socket and allows text strings to be sent to another computer also running the chat program. I'm finding that when my chat program…
JonN
  • 2,498
  • 5
  • 33
  • 49
3
votes
2 answers

websockets protocols?

I couldn't find this online so I thought I'd ask here. What protocols can be used by websockets currently? (in chrome) Also does chrome or any other browser plan to support RUDP protocol for websockets eventually? Thanks in advance!
resopollution
  • 19,600
  • 10
  • 40
  • 49
3
votes
2 answers

About C# UDP Sockets

I am supposed to connect to external server using UDP sockets in C#.. I could not understand these 2 lines in server usage notes: "Use of dedicated sockets is enforced." and "If the server looses UDP connectivity with the client, it will ..." I…
Betamoo
  • 14,964
  • 25
  • 75
  • 109
3
votes
0 answers

FFMPEG: encode x265, container mpeg2 ts, stream-STARTCODE MISSING

I am trying to encode a video with FFMPEG x265, put it into MPEG2 TS and then stream it over UDP. Then receive on another PC and save it. Perform PSNR. The encoding works fine, but when I try to stream I get the error: [mpegts @ 00000000050b0520]…
rwdy15
  • 31
  • 1
  • 3
3
votes
1 answer

Java: Determine receiving address when receiving with MulticastSocket

I am using MulticastSocket to receive UDP Multicast packets. How can I determine to which address such a packet was sent? With the methods provided, I am only able to determine the sender address. Of course, I am the one who sets the To-Address when…
guruz
  • 1,604
  • 14
  • 21
3
votes
2 answers

How does the UDP checksum change for IP fragments?

I need to program a basic network stack in c, but have some questions regarding proper practices. Let's assume that I only need to support UDP at L4 and IP at L3. When I want to sent a big message that needs to be fragmented. What is the proper…
user1764386
  • 5,311
  • 9
  • 29
  • 42
3
votes
1 answer

Winsock ~ Creating an UDP Listener (Multiple vs 1 socket)

Dear Stackoverflowers, I am researching networking a bit and I decided I'd like to create a small and simple networking library with Winsock. (I am using Completion Ports and Overlapped IO though) As I researched a bit I came to the following steps…
user896326
3
votes
1 answer

File Channel reads/adds wrong data

I am using a filechannel with a byte buffer to send packets over the network. My problem is that when the filechannel reads the last few bytes it appends the last bit of data from previous bytes read even though I am clearing the byte buffer after I…
user3339242
  • 631
  • 2
  • 15
  • 32
3
votes
1 answer

Boost ASIO UDP client async_receive_from calls handler even when there are no incoming messages

I've modified the UDP client code from Boost daytime client tutorial into the following: class UDPClient { public: udp::socket* socket; udp::endpoint* receiver_endpoint; boost::array recv_buffer; UDPClient(); void…
Lai Xue
  • 1,523
  • 1
  • 15
  • 17