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> Tables of <strong>System</strong> <strong>Calls</strong><br />

A.5 pNA+ <strong>System</strong> <strong>Calls</strong><br />

Table A-5 provides an alphabetical listing of all pNA+ system calls, a summary description<br />

for each call, and a reference to more details about the call.<br />

TABLE A-5 pNA+ <strong>System</strong> <strong>Calls</strong><br />

Name Description Page<br />

accept Accepts a connection on a socket. 4-2<br />

add_ni Adds a network interface. 4-4<br />

bind Binds an address to a socket. 4-6<br />

close Closes a socket descriptor. 4-8<br />

connect Initiates a connection on a socket 4-9<br />

get_id Gets a task’s user ID and group ID. 4-12<br />

getpeername Gets the address of a connected peer. 4-13<br />

getsockname Gets the address that is bound to a socket. 4-15<br />

getsockopt Gets options on a socket. 4-17<br />

ioctl Performs control operations on a socket. 4-22<br />

listen Listens for connections on a socket. 4-38<br />

pna_allocb Allocates a message block. 4-39<br />

pna_esballoc Attaches a message block to the data buffer. 4-41<br />

pna_freeb Frees a message block. 4-43<br />

pna_freemsg Frees all the message blocks associated with a message. 4-44<br />

recv Receives data from a socket. 4-45<br />

recvfrom Receives data from a socket. 4-48<br />

recvmsg Receives data from a socket. 4-51<br />

select Checks the status of multiple sockets. 4-54<br />

send Sends data to a socket. 4-57<br />

sendmsg Sends data to a socket. 4-60<br />

A-26 <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!