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

BOOL PSocket::GetOption ( int  option,
int &  value,
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.
value  Integer to receive value.
level  Level for option

Definition at line 1495 of file sockets.cxx.

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

Referenced by PIPSocket::Listen().

  socklen_t valSize = sizeof(value);
  return ConvertOSError(::getsockopt(os_handle, level, option,
                                     (char *)&value, &valSize));

Generated by  Doxygen 1.6.0   Back to index