.TH "iio.h" 3 "axil" \" -*- nroff -*- .ad l .nh .SH NAME iio.h \- I/O descriptor table abstraction for axil\&. .SH SYNOPSIS .br .PP \fR#include \fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBio\fP" .br .RI "I/O dispatch table for one descriptor slot\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef size_t \fBio_size_t\fP" .br .RI "Unsigned I/O byte-size type\&. " .ti -1c .RI "typedef ssize_t \fBio_ssize_t\fP" .br .RI "Signed I/O size type (result or error)\&. " .ti -1c .RI "typedef \fBio_ssize_t\fP(* \fBio_t\fP) (\fBsocket_t\fP fd, void *data, \fBio_size_t\fP len, int flags)" .br .RI "I/O operation hook performed on a descriptor\&. " .in -1c .SS "Variables" .in +1c .ti -1c .RI "struct io \fBio\fP [FD_SETSIZE]" .br .RI "Global I/O descriptor table (one entry per fd slot)\&. " .in -1c .SH "Detailed Description" .PP 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\&. .SH "Typedef Documentation" .PP .SS "typedef \fBio_ssize_t\fP(* io_t) (\fBsocket_t\fP fd, void *data, \fBio_size_t\fP len, int flags)" .PP I/O operation hook performed on a descriptor\&. .PP \fBParameters\fP .RS 4 \fIfd\fP Socket descriptor\&. .br \fIdata\fP Buffer to read into or write from\&. .br \fIlen\fP Requested byte count\&. .br \fIflags\fP Operation flags\&. .RE .PP \fBReturns\fP .RS 4 Bytes transferred, or -1 on error\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for axil from the source code\&.