Skip to content

TCPListenerActor[optional TCP: TCPBackend ref]

[Source]

The actor trait a listener actor implements. Provide _listener() returning the TCPListener the actor owns; the behaviors here deliver ASIO events to it. Implement _on_accept to build a connection actor for each accepted socket, and the listen lifecycle callbacks (_on_listening, _on_listen_failure, _on_closed) as needed.

trait tag TCPListenerActor[optional TCP: TCPBackend ref] is
  AsioEventNotify tag

Implements


Public Behaviours

dispose

[Source]

Stop listening

be dispose()