UDPLITE(4) | Device Drivers Manual | UDPLITE(4) |
udplite
—
Lightweight User Datagram Protocol
#include
<sys/types.h>
#include <sys/socket.h>
#include
<netinet/udplite.h>
int
socket
(AF_INET,
SOCK_DGRAM,
IPPROTO_UDPLITE);
The UDP-Lite protocol provides a partial checksum which allows corrupted packets to be transmitted to the receiving application. This has advantages for some types of multimedia transport that may be able to make use of slightly damaged datagrams, rather than having them discarded by lower-layer protocols.
UDP-Lite supports a number of socket options which can be set with setsockopt(2) and tested with getsockopt(2):
UDPLITE_SEND_CSCOV
UDPLITE_RECV_CSCOV
A socket operation may fail with one of the following errors returned:
EISCONN
]ENOTCONN
]ENOBUFS
]EADDRINUSE
]EADDRNOTAVAIL
]October 1, 2014 | Debian |