io_timeout(3diet)

io_timeout3diet

Set time limit on descriptor

Usage

#include <io.h>

void io_timeout(int64 fd,tai6464 deadline);

Overview

The io library keeps track of an optional ``timeout'' for each descriptor. The timeout is a specific moment in time, stored in a tai6464 variable.

io_timeout(d,t) sets the timeout for descriptor d to t.

io_timeout has no return value; it always succeeds. (Space to store the timeout was already allocated as part of the descriptor.) It has no effect if d is not the number of a descriptor.

Note that you have to call io_timeouted to be notified of timeouts, just like you are calling io_canread or io_canwrite for read and write notification.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–4.0
  2. 5.0–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.