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.

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

Return Value<br />

Error Codes<br />

flags Specifies usage options and is the result of an OR operation performed<br />

on one or more of the following symbolic constants (defined in<br />

). It can also be set to 0.<br />

MSG_OOB Specifies that you want send() to send out-ofband<br />

data, rather than the regular in-band data.<br />

MSG_DONTROUTE Specifies that you want send() to turn on the<br />

socket flag SO_DONTROUTE for the duration of the<br />

send operation. The SO_DONTROUTE flag prohibits<br />

routing of outgoing data from the socket. Packets<br />

directed at unconnected nodes are dropped.<br />

MSG_RAWMEM Specifies that you have set buf to point to a linked<br />

list of mblks and len to the total size of the message.<br />

This system call returns the number of bytes sent or -1 if an error occurs.<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 />

0x5028 EMSGSIZE Message too long.<br />

0x5033 ENETUNREACH Destination network can’t be reached<br />

from this node.<br />

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

peer.<br />

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

be allocated.<br />

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

4-58 <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!