Xirsys.Sockets.Acceptor (xturn_sockets v2.2.0)
View SourceAccept loop for connection-oriented transports (TCP, TLS).
Each accepted socket is started under SockSupervisor as a Connection.
Transport.SCTP.accept/2 is not supported by this loop.
Summary
Functions
Returns a specification to start this module under a supervisor.
Bound port of a running acceptor (useful when :port was 0).
Listens and starts accepting.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Bound port of a running acceptor (useful when :port was 0).
Parameters
pid- acceptor pid fromstart_link/1
Listens and starts accepting.
Parameters
opts is a keyword list:
:transport-Xirsys.Sockets.Transportmodule (required):ip/:port- bind address (required):pipeline- pipeline module, or omit and pass:accumulator+:handler:listen_opts- extra options forwarded tolisten/3:assigns- map copied onto eachConn:accept_timeout- accept wait in milliseconds (default1000):connection_supervisor-SockSupervisorname or pid (defaultSockSupervisor)