Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PSocket::GetOption ( int  option,
void *  valuePtr,
PINDEX  valueSize,
int  level = SOL_SOCKET 
) [inherited]

Get options on the socket. These options are defined as Berkeley socket options of the class SOL_SOCKET.

TRUE if the option was successfully retreived.
option  Option to get.
valuePtr  Pointer to buffer for value.
valueSize  Size of buffer to receive value.
level  Level for option

Definition at line 1503 of file sockets.cxx.

References PChannel::ConvertOSError(), and PChannel::os_handle.

  return ConvertOSError(::getsockopt(os_handle, level, option,
                                     (char *)valuePtr, (socklen_t *)&valueSize));

Generated by  Doxygen 1.6.0   Back to index