Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int imc_socketpair ( int  pair[2]  ) 

Creates an IMC socket pair, returning a pair of file descriptors. These descriptors are data-only, i.e., they may be used with imc_sendmsg and imc_recvmsg, but only if the descriptor count (desc_length) is zero.

Parameters:
pair An array of two file descriptors for the two ends of the socket.
Returns:
On success imc_socketpair returns zero. On failure, it returns -1 and sets errno appropriately. The returned descriptor may only be used to transfer data and is itself transferable.


Generated by  Doxygen 1.6.0   Back to index