TCPListenNotify¶
Notifications for TCP listeners.
For an example of using this class, please see the documentation for the
TCPListener
actor.
Public Functions¶
listening¶
Called when the listener has been bound to an address.
Parameters¶
- listen: TCPListener ref
Returns¶
- None val
not_listening¶
Called if it wasn't possible to bind the listener to an address.
It is expected to implement proper error handling. You need to opt in to ignoring errors, which can be implemented like this:
Parameters¶
- listen: TCPListener ref
Returns¶
- None val
closed¶
Called when the listener is closed.
Parameters¶
- listen: TCPListener ref
Returns¶
- None val
connected¶
Create a new TCPConnectionNotify to attach to a new TCPConnection for a newly established connection to the server.
Parameters¶
- listen: TCPListener ref
Returns¶
- TCPConnectionNotify iso^ ?