set_service
Description:
Configure this to accept connections on the given service.
service
should be a string containing the service name (see services(5)) or a string containing a port number between 1 and
65535.
When service
is set to "0", the server will listen on a random free port. The actual used port can be retrieved with
get_bound_port.
This function must be called before the server is bound.
Parameters:
this |
a Server |
service |
the service |