Function

nw_framer_set_wakeup_handler(_:_:)

Sets a handler to receive scheduled wakeup events.

Declaration

func nw_framer_set_wakeup_handler(_ framer: nw_framer_t, _ wakeup_handler: @escaping nw_framer_wakeup_handler_t)

See Also

Handling Asynchronous Events

func nw_framer_schedule_wakeup(nw_framer_t, UInt64)

Requests that the nw_framer_wakeup_handler_t be called on your protocol at a specific time in the future.

var NW_FRAMER_WAKEUP_TIME_FOREVER: UInt64

A sentinel value that indicates that no wakeup should be delivered.

typealias nw_framer_wakeup_handler_t

A handler that delivers a scheduled wakeup event.

func nw_framer_async(nw_framer_t, nw_framer_block_t)

Requests that a block be executed on the connection's internal scheduling context.

typealias nw_framer_block_t

A block to be invoked asynchronously on your framer protocol's scheduling context.