06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

setsockopt pNA+ <strong>System</strong> <strong>Calls</strong><br />

Return Value<br />

Error Codes<br />

See Also<br />

IP_MULTICAST_LOOP Specifies whether or not to loopback multicast<br />

packets. optval is a pointer to an unsigned char.<br />

By default the packets are looped back<br />

(IP_DEFAULT_MULTICAST_LOOP). A value of 0<br />

disables loopback.<br />

IP_MULTICAST_TTL Specifies the time-to-live for outgoing IP multicast<br />

datagrams. optval is a pointer to an unsigned<br />

char. The default is<br />

IP_DEFAULT_MULTICAST_TTL.<br />

This system call returns 0 if successful, otherwise it returns -1.<br />

Hex Mnemonic Description<br />

0x5009 EBADS The socket descriptor is invalid.<br />

0x5016 EINVALID An argument is invalid.<br />

0x502A ENOPROTOOPT The optname or level is not valid.<br />

0x5030 EADDRINUSE The multicast address is already in use.<br />

0x5031 EADDRNOTAVAIL The multicast address was not available because<br />

of one of the following: the multicast address was<br />

not found, the interface could not be determined,<br />

or the interface does not support multicast.<br />

0x5037 ENOBUFS An internal buffer is required but cannot be allocated.<br />

0x503B ETOOMANYREFS Too many references; can’t splice. The per socket<br />

maximum number of memberships has been exceeded.<br />

See section 3 of the <strong>pSO<strong>System</strong></strong> Programmer’s<br />

Reference.<br />

getsockopt, socket<br />

4-72 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!