TCPListenNotify

[Source]

Notifications for TCP listeners.

For an example of using this class, please see the documentation for the TCPListener actor.

interface ref TCPListenNotify

Public Functions

listening

[Source]

Called when the listener has been bound to an address.

fun ref listening(
  listen: TCPListener ref)
: None val

Parameters

Returns

not_listening

[Source]

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:

fun ref not_listening(listen: TCPListener ref) =>
  None
fun ref not_listening(
  listen: TCPListener ref)
: None val

Parameters

Returns

closed

[Source]

Called when the listener is closed.

fun ref closed(
  listen: TCPListener ref)
: None val

Parameters

Returns

connected

[Source]

Create a new TCPConnectionNotify to attach to a new TCPConnection for a newly established connection to the server.

fun ref connected(
  listen: TCPListener ref)
: TCPConnectionNotify iso^ ?

Parameters

Returns

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/net-TCPListenNotify