class type protocol =object
..end
method name : string
The protocol name is an arbitrary string identifying groups of
sockets serving the same protocol for a socket_service
.
method addresses : extended_address array
The addresses of the master sockets. (The socket type is always SOCK_STREAM.) The list must be non-empty.
method lstn_backlog : int
The backlog (argument of Unix.listen)
method lstn_reuseaddr : bool
Whether to reuse ports immediately
method so_keepalive : bool
Whether to set the keep-alive socket option
method tcp_nodelay : bool
Whether to set the TCP_NODELAY option
method local_chmod : int option
Whether to chmod Unix Domain sockets
method local_chown : (int * int) option
Whether to chown (user,group) Unix Domain sockets
method configure_slave_socket : Unix.file_descr -> unit
A user-supplied function to configure slave sockets (after accept
).
The function is called from the process/thread of the container.