| Main index | Section 4 | Options |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/udplite.h>
UDP-Lite supports a number of socket options which can be set with setsockopt(2) and tested with getsockopt(2):
| UDPLITE_SEND_CSCOV | |
| 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. | |
| UDPLITE_RECV_CSCOV | |
| 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. | |
| [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; | |
| [ENOTCONN] | |
| when trying to send a datagram, but no destination address is specified, and the socket has not been connected; | |
| [ENOBUFS] | |
| when the system runs out of memory for an internal data structure; | |
| [EADDRINUSE] | |
| when an attempt is made to create a socket with a port which has already been allocated; | |
| [EADDRNOTAVAIL] | |
| when an attempt is made to create a socket with a network address for which no network interface exists. | |
| UDPLITE (4) | October 1, 2014 |
| Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | A UNIX saleslady, Lenore, Enjoys work, but she likes the beach more. She found a good way To combine work and play: She sells C shells by the seashore. |
” |