iio.h(3)axil

NAME

iio.h - I/O descriptor table abstraction for axil.

SYNOPSIS

#include <stdio.h>

Data Structures

struct io

I/O dispatch table for one descriptor slot.

Typedefs

typedef size_t io_size_t

Unsigned I/O byte-size type.

typedef ssize_t io_ssize_t

Signed I/O size type (result or error).

typedef io_ssize_t(* io_t) (socket_t fd, void *data, io_size_t len, int flags)

I/O operation hook performed on a descriptor.

Variables

struct io io [FD_SETSIZE]

Global I/O descriptor table (one entry per fd slot).

Detailed Description

I/O descriptor table abstraction for axil.

Wraps read/write dispatch so a descriptor can carry extra protocol state (e.g. WebSocket framing) beneath the socket fd.

Typedef Documentation

typedef io_ssize_t(* io_t) (socket_t fd, void *data, io_size_t len, int flags)

I/O operation hook performed on a descriptor.

Parameters

fd Socket descriptor.
data Buffer to read into or write from.
len Requested byte count.
flags Operation flags.

Returns

Bytes transferred, or -1 on error.

Author

Generated automatically by Doxygen for axil from the source code.