Copyright (c) 2014, Kevin Lo. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other m...
NAMEudplite - Lightweight User Datagram Protocol
SYNOPSISIn sys/types.h In sys/socket.h In netinet/udplite.h Ft int Fn socket AF_INET SOCK_DGRAM IPPROTO_UDPLITE
DESCRIPTIONThe 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.
- This option sets the sender checksum coverage. A value of zero indicates that all sent packets will have full checksum coverage. A value of 8 to 65535 limits the checksum coverage of all sent packets to the value given.
- This option is the receiver-side analogue. A value of zero instructs the kernel to drop all received packets not having full checksum coverage. A value of 8 to 65535 instructs the kernel to drop all received packets with a partial checksum coverage smaller than the value specified.
ERRORSA socket operation may fail with one of the following errors returned:
- Bq Er EISCONN
- when trying to establish a connection on a socket which already has one, or when trying to send a datagram with the destination address specified and the socket is already connected;
- Bq Er ENOTCONN
- when trying to send a datagram, but no destination address is specified, and the socket has not been connected;
- Bq Er ENOBUFS
- when the system runs out of memory for an internal data structure;
- Bq Er EADDRINUSE
- when an attempt is made to create a socket with a port which has already been allocated;
- Bq Er EADDRNOTAVAIL
- when an attempt is made to create a socket with a network address for which no network interface exists.