Synopsis
typedef struct {
  unsigned max_connections;
  CTL_TCP_SOCKET_OPTIONS_t defaults;
} CTL_TCP_PORT_OPTIONS_t;

CTL_TCP_PORT_OPTIONS_t contains settings for server sockets, on a port-by-port basis.

max_connections
Maximum number of sockets that can be ‘owned’ by the server.
defaults
Default options for a socket created by the server. When a new TCP connect request is received for the port registered to the server, a socket is created and its options are initialized with these values before the ‘accept’ callback is invoked.
See Also

CTL_TCP_SOCKET_OPTIONS_t, ctl_tcp_get_port_options, ctl_tcp_set_port_options, ctl_tcp_get_socket_options, ctl_tcp_set_socket_options