KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
file_io.h File Reference
#include <keel/allocator.h>
#include <keel/event.h>
#include <sys/types.h>
Include dependency graph for file_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  KlFileIOResult
 
struct  KlFileIO
 

Typedefs

typedef struct KlFileIO KlFileIO
 

Functions

KlFileIOkl_file_io_create (KlEventLoop *loop, KlAllocator *alloc)
 Create async file I/O backend from the event loop. Returns NULL if the backend doesn't support async file I/O. Caller owns the returned object; free with fio->destroy(fio).
 

Typedef Documentation

◆ KlFileIO

typedef struct KlFileIO KlFileIO

Function Documentation

◆ kl_file_io_create()

KlFileIO * kl_file_io_create ( KlEventLoop loop,
KlAllocator alloc 
)

Create async file I/O backend from the event loop. Returns NULL if the backend doesn't support async file I/O. Caller owns the returned object; free with fio->destroy(fio).