Modules | |
| Stream common | |
| Creation methods and other common methods for socket streams. | |
| Non-buffered operations | |
| Low level read/write primitives. | |
| Line-mode operations | |
| Line-mode based stream methods. | |
| Write-buffered operations | |
| Write-buffered stream methods. | |
| Scheduling | |
| Scheduling task for streams. | |
Typedefs | |
| typedef __peak_stream * | peak_stream |
| Opaque stream pointer type. | |
| typedef void(* | peak_stream_event_callback )(peak_stream s, int type, void *context) |
| Stream client event callback. | |
Enumerations | |
| enum | { PEAK_STREAM_OPT_DEFAULT = 0, PEAK_STREAM_OPT_DGRAM = 1 << 0, PEAK_STREAM_OPT_LISTEN = 1 << 1, PEAK_STREAM_OPT_LINEMODE = 1 << 2, PEAK_STREAM_OPT_AUTOSCHEDULE = 1 << 3 } |
| Stream creation options. More... | |
| enum | { PEAK_STREAM_EVT_NONE = 0, PEAK_STREAM_EVT_OPEN, PEAK_STREAM_EVT_ACCEPT, PEAK_STREAM_EVT_READ, PEAK_STREAM_EVT_WRITE, PEAK_STREAM_EVT_END, PEAK_STREAM_EVT_ERROR, PEAK_STREAM_EVT_TIMEDOUT } |
| Types of event passed to your stream event callback function. More... | |
|
|
Stream client event callback. Defines a pointer to your notification callback function that handles interesting events that occur on a scheduled stream. |
|
|
|
Types of event passed to your stream event callback function.
|