Skip to content

RuntimeAsio

[Source]

Delegates every ASIO operation to the runtime's pony_asio_event_* functions. Production connections use this via the default type parameter on TCPConnection.

class ref RuntimeAsio is
  AsioBackend ref

Implements


Constructors

create

[Source]

new ref create()
: RuntimeAsio ref^

Returns


Public Functions

create_event

[Source]

fun box create_event(
  the_actor: AsioEventNotify tag,
  fd: U32 val)
: AsioEventID

Parameters

Returns


destroy

[Source]

fun box destroy(
  event: AsioEventID)
: None val

Parameters

Returns


unsubscribe

[Source]

fun box unsubscribe(
  event: AsioEventID)
: None val

Parameters

Returns


resubscribe_read

[Source]

fun box resubscribe_read(
  event: AsioEventID)
: None val

Parameters

Returns


resubscribe_write

[Source]

fun box resubscribe_write(
  event: AsioEventID)
: None val

Parameters

Returns


create_timer_event

[Source]

fun box create_timer_event(
  the_actor: AsioEventNotify tag,
  nsec: U64 val)
: AsioEventID

Parameters

Returns


set_timer

[Source]

fun box set_timer(
  event: AsioEventID,
  nsec: U64 val)
: None val

Parameters

Returns


set_readable

[Source]

fun box set_readable(
  event: AsioEventID)
: None val

Parameters

Returns


set_unreadable

[Source]

fun box set_unreadable(
  event: AsioEventID)
: None val

Parameters

Returns


set_writeable

[Source]

fun box set_writeable(
  event: AsioEventID)
: None val

Parameters

Returns


set_unwriteable

[Source]

fun box set_unwriteable(
  event: AsioEventID)
: None val

Parameters

Returns


event_fd

[Source]

fun box event_fd(
  event: AsioEventID)
: U32 val

Parameters

Returns


get_disposable

[Source]

fun box get_disposable(
  event: AsioEventID)
: Bool val

Parameters

Returns