Function

nw_framer_set_wakeup_handler

Sets a handler to receive scheduled wakeup events.

Declaration

void nw_framer_set_wakeup_handler(nw_framer_t framer, nw_framer_wakeup_handler_t wakeup_handler);

See Also

Handling Asynchronous Events

nw_framer_schedule_wakeup

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

NW_FRAMER_WAKEUP_TIME_FOREVER

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

nw_framer_wakeup_handler_t

A handler that delivers a scheduled wakeup event.

nw_framer_async

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

nw_framer_block_t

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