Synchronous-looking fiber I/O wrapper around an externally owned AsyncEventLoop. More...
#include <FibersAsync.h>
Public Member Functions | |
| FiberAsyncIO (FiberScheduler &fiberScheduler, AsyncEventLoop &asyncEventLoop, Span< FiberAsyncCommand > commandStorage={}) | |
| FiberScheduler & | fiberScheduler () |
| const FiberScheduler & | fiberScheduler () const |
| AsyncEventLoop & | asyncEventLoop () |
| const AsyncEventLoop & | asyncEventLoop () const |
| bool | isOwnerThread () const |
| Result | run () |
| Result | runOnce () |
| Result | runNoWait () |
| Result | runUntilComplete () |
| Result | runUntilIdle () |
| Result | runOwner () |
| Result | runOwnerOnce () |
| Result | runOwnerNoWait () |
| Result | runOwnerUntilComplete () |
| Result | runOwnerUntilIdle () |
| Result | cancelAll () |
| Result | sleep (TimeMs duration) |
| Result | accept (const SocketDescriptor &serverSocket, SocketDescriptor &outClient) |
| Result | connect (const SocketDescriptor &socket, SocketIPAddress address) |
| Result | send (const SocketDescriptor &socket, Span< const char > data, FiberAsyncSocketSendResult *outResult=nullptr) |
| Result | receive (const SocketDescriptor &socket, Span< char > buffer, FiberAsyncSocketReceiveResult &outResult) |
| Result | sendAll (const SocketDescriptor &socket, Span< const char > data, FiberAsyncSocketSendResult *outResult=nullptr) |
| Result | sendTo (const SocketDescriptor &socket, SocketIPAddress address, Span< const char > data, FiberAsyncSocketSendResult *outResult=nullptr) |
| Result | receiveFrom (const SocketDescriptor &socket, Span< char > buffer, FiberAsyncSocketReceiveFromResult &outResult) |
| Result | fileRead (const FileDescriptor &file, Span< char > buffer, FiberAsyncFileReadResult &outResult) |
| Result | fileReadAt (const FileDescriptor &file, uint64_t offset, Span< char > buffer, FiberAsyncFileReadResult &outResult) |
| Result | fileReadExact (const FileDescriptor &file, Span< char > buffer, FiberAsyncFileReadResult &outResult) |
| Result | fileReadExactAt (const FileDescriptor &file, uint64_t offset, Span< char > buffer, FiberAsyncFileReadResult &outResult) |
| Result | filePoll (const FileDescriptor &file) |
| Result | fileWrite (const FileDescriptor &file, Span< const char > data, FiberAsyncFileWriteResult *outResult=nullptr) |
| Result | fileWriteAt (const FileDescriptor &file, uint64_t offset, Span< const char > data, FiberAsyncFileWriteResult *outResult=nullptr) |
| Result | fileWriteAll (const FileDescriptor &file, Span< const char > data, FiberAsyncFileWriteResult *outResult=nullptr) |
| Result | fileWriteAllAt (const FileDescriptor &file, uint64_t offset, Span< const char > data, FiberAsyncFileWriteResult *outResult=nullptr) |
| Result | fileSend (const FileDescriptor &file, const SocketDescriptor &socket, FiberAsyncFileSendOptions options={}, FiberAsyncFileSendResult *outResult=nullptr) |
| Result | processExit (FileDescriptor::Handle process, FiberAsyncProcessExitResult &outResult) |
| Result | signal (int signalNumber, FiberAsyncSignalResult &outResult) |
Synchronous-looking fiber I/O wrapper around an externally owned AsyncEventLoop.