socket_set_option
Sets socket options for the socket
&reftitle.description;
boolsocket_set_option
Socketsocket
intlevel
intoption
arraystringintvalue
The socket_set_option function sets the option
specified by the option parameter, at the
specified protocol level, to the value pointed to
by the value parameter for the
socket.
&reftitle.parameters;
socket
A Socket instance created with socket_create
or socket_accept.
level
The level parameter specifies the protocol
level at which the option resides. For example, to retrieve options at
the socket level, a level parameter of
SOL_SOCKET would be used. Other levels, such as
TCP, can be used by specifying the protocol number of that level.
Protocol numbers can be found by using the
getprotobyname function.
option
The available socket options are the same as those for the
socket_get_option function.
value
The option value.
&reftitle.returnvalues;
&return.success;
&reftitle.changelog;
&Version;
&Description;
&sockets.changelog.socket-param;
&reftitle.examples;
socket_set_option example
]]>
&reftitle.seealso;
socket_create
socket_bind
socket_strerror
socket_last_error
socket_get_option