TCPListener[optional TCP: TCPBackend ref]¶
The TCP listener: opens a listening socket, runs the accept loop, and
enforces the connection limit. A TCPListenerActor owns one and delegates to
it. Create it with TCPListener(auth, host, port, this), using
TCPListener.none() as the field initializer before that.
Constructors¶
create¶
new ref create(
auth: TCPListenAuth val,
host: String val,
port: String val,
enclosing: TCPListenerActor[TCP] ref,
ip_version: IPVersion = reference,
limit: (MaxSpawn | None val) = call)
: TCPListener[TCP] ref^
Parameters¶
- auth: TCPListenAuth val
- host: String val
- port: String val
- enclosing: TCPListenerActor[TCP] ref
- ip_version: IPVersion = reference
- limit: (MaxSpawn | None val) = call
Returns¶
- TCPListener[TCP] ref^
none¶
A placeholder listener for the actor's field before real initialization,
replaced by a create listener once the actor starts.
Returns¶
- TCPListener[TCP] ref^
Public Functions¶
close¶
Returns¶
- None val
local_address¶
Return the local IP address. If this TCPListener is closed then the address returned is invalid.
Returns¶
- NetAddress val