Documentation
Sets the sockets attributes.
- Returns:
- True if the option could be changed.
- Parameters:
- Socket - is the socket to modify.
Level - selects the level for which an option should be changed.
Valid values are:
- osl_sol_socket: Socket Level
- osl_sol_tcp: Level of Transmission Control Protocol
Option - denotes the option to modify.
Valid values (depending on the Level) are:
- osl_so_debug,
- osl_so_acceptconn,
- osl_so_reuseaddr,
- osl_so_keepalive,
- osl_so_dontroute,
- osl_so_broadcast,
- osl_so_useloopback,
- osl_so_linger,
- osl_so_oobinline,
- osl_so_sndbuf,
- osl_so_rcvbuf,
- osl_so_sndlowat,
- osl_so_rcvlowat,
- osl_so_sndtimeo,
- osl_so_rcvtimeo,
- osl_so_error,
- osl_so_type,
- osl_so_tcp_nodelay, (sol_tcp)
If not above mentioned otherwise, the options are only valid for
level sol_socket.
pBuffer - Pointer to a Buffer which contains the attribute-value.
BufferSize - contains the length of the Buffer.
alphabetic index hierarchy of classes