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.

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

Return Value<br />

Error Codes<br />

See Also<br />

This system call returns the number of bytes sent or -1 if an error occurred.<br />

Hex Mnemonic Description<br />

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

0x500D EACCESS The broadcast option is not set for<br />

this socket.<br />

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

0x5020 EPIPE The connection is broken.<br />

0x5023 EWOULDBLOCK This operation would block and the<br />

socket is marked non-blocking.<br />

0x5027 EDESTADDRREQ The destination address is invalid.<br />

0x5028 EMSGSIZE The data cannot be transmitted as a<br />

unit.<br />

0x5031 EADDRNOTAVAIL The specified address is not available.<br />

0x5033 ENETUNREACH The destination network cannot be<br />

reached from this node.<br />

0x5036 ECONNRESET The connection has been reset by the<br />

peer.<br />

0x5037 ENOBUFS An internal buffer is required, but<br />

can’t be allocated.<br />

0x5038 EISCONN The socket is in a connected state.<br />

0x5039 ENOTCONN The socket is not connected.<br />

0x5041 EHOSTUNREACH The destination host could not be<br />

reached from this node.<br />

send, sendto, socket<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 4-61<br />

4

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

Saved successfully!

Ooh no, something went wrong!