Top "Udp" questions

User Datagram Protocol is one of the messaging protocols of the IP protocol stack.

Blocking sockets: when, exactly, does "send()" return?

When, exactly, does the BSD socket send() function return to the caller? In non-blocking mode, it should return immediately, correct? …

tcp udp sockets
Java DatagramPacket (UDP) maximum send/recv buffer size

In Java when using DatagramPacket suppose you have a byte[1024*1024] buffer. If you just pass that for the DatagramPacket when …

java udp
unix socket error 14: EFAULT (bad address)

I have a very simple question, but I have not managed to find any answers to it all weekend. I …

c sockets udp sendto
What is "backlog" in TCP connections?

Below, you see a python program that acts as a server listening for connection requests to port 9999: # server.py import …

python sockets tcp network-programming udp
Reading from udp port in browser

Aside from Java Applet, is there anyway we can read from an UDP socket? I know websockets are TCP sockets, …

javascript html tcp udp websocket
What would cause UDP packets to be dropped when being sent to localhost?

I'm sending very large (64000 bytes) datagrams. I realize that the MTU is much smaller than 64000 bytes (a typical value is …

java network-programming udp
C - choose interface for UDP/multicast socket

I am trying to modify a multicast listener / sender example to bind the UDP / multicast socket to a specific interface …

c sockets interface udp multicast
How do I receive udp packets with winsock in c++?

As an attempt at wrapping my head around udp sockets I've tried to port the code from this tutorial page …

c++ sockets udp winsock
Socket programming: sendto always fails with errno 22 (EINVAL)

I am always getting no bytes sent, with an errno of 22 (EINVAL, Invalid Argument) with this code. The destination_host …

c sockets udp sendto
when is IPPROTO_UDP required?

When is IPPROTO_UDP required? Is there ever a case where UDP is not the default protocol for SOCK_DGRAM? (…

udp sockets