async_read.h¶
Multiple asynchronus read on file descriptors.
-
ASYNC_READ_NUMOF
¶ Maximum number of file descriptors.
1
2
-
void(*
native_async_read_callback_t
()¶ asynchronus read callback type
-
void
native_async_read_setup
(void)¶ initialize asynchronus read system
This registers SIGIO signal handler.
-
void
native_async_read_cleanup
(void)¶ shutdown asynchronus read system
This deregisters SIGIO signal handler.
-
void
native_async_read_continue
(int fd)¶ resume monitoring of file descriptors
Call this function after reading file descriptors.
Parameters
fd: The file descriptor to monitor
-
void
native_async_read_add_handler
(int fd, void * arg,async_read.h::native_async_read_callback_t
handler)¶ start monitoring of file descriptor
Parameters
fd: The file descriptor to monitor arg: Pointer to be passed as arguments to the callback handler: The callback function to be called when the file descriptor is ready to read.