06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Operation Description<br />

FIONBIO Sets the blocking mode of the socket. If the integer pointed to<br />

by arg equals 1, the socket is set to operate in non-blocking<br />

mode. If the integer pointed to by arg equals 0, the socket is<br />

set to operate in blocking (default) mode. Normally, socket<br />

operations that cannot be immediately completed cause the<br />

task that initiated the operation to block. If a socket is<br />

marked non-blocking, an operation request that cannot<br />

complete without waiting does not execute, and an error is<br />

returned.<br />

FIOREAD Returns the number of bytes stored in the socket's input<br />

buffer in the integer pointed to by arg.<br />

FIOSETOWN Assigns an owner to the socket. The parameter arg should<br />

point to an integer that provides the task ID (tid) of the<br />

socket’s owner. This tid is passed as an input parameter to<br />

the user signal handler.<br />

SIOCATMARK Determines whether out-of-band is available. If the data<br />

available at the socket is out-of-band data, the integer<br />

pointed to by arg is set equal to 1. Otherwise, it equals 0<br />

upon return.<br />

SIOCSSBMAX Upon creation of a socket, pNA+ assigns a maximum total<br />

default size of 128 Kbytes for send and receive socket buffer<br />

queues. This operation changes the maximum total size.<br />

This may be used to increase end-to-end throughput for fast<br />

networks.<br />

SIOCGSBMAX Gets the total maximum send and receive socket buffer<br />

queue size that pNA+ assigns to newly created sockets.<br />

NI-Related Operations<br />

The following operations are available to access or modify the characteristics of a<br />

Network Interface:<br />

Operation Description<br />

SIOCSIFADDR Sets the interface address.<br />

SIOCGIFADDR Gets the interface address.<br />

SIOCSIFBRDADDR Sets the IP broadcast address of the NI.<br />

SIOCGIFBRDADDR Gets the IP broadcast address of the NI.<br />

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

4

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

Saved successfully!

Ooh no, something went wrong!