4#include "../Async/Async.h"
5#include "AsyncStreams.h"
11template <
typename AsyncRequestType>
19 AsyncRequestType request;
27 void onEndCloseDescriptor();
30template <
typename AsyncRequestType>
35 template <
typename DescriptorType>
37 const DescriptorType& descriptor);
42 AsyncRequestType request;
52 void onEndCloseDescriptor();
Holds a Span of AsyncBufferView (allocated by user) holding available memory for the streams.
Definition AsyncStreams.h:66
Asynchronous I/O (files, sockets, timers, processes, fs events, threads wake-up) (see Async) AsyncEve...
Definition Async.h:976
Async source abstraction emitting data events in caller provided byte buffers.
Definition AsyncStreams.h:100
Definition AsyncRequestStreams.h:13
Result registerAutoCloseDescriptor(bool value)
Registers or unregisters a listener to AsyncReadableStream::eventEnd to close descriptor.
AsyncEventLoop * eventLoop
AsyncFileRead / AsyncFileWrite / AsyncSocketReceive / AsyncSocketSend.
Definition AsyncRequestStreams.h:21
Definition AsyncRequestStreams.h:32
AsyncEventLoop * eventLoop
AsyncFileRead / AsyncFileWrite / AsyncSocketReceive / AsyncSocketSend.
Definition AsyncRequestStreams.h:45
Result registerAutoCloseDescriptor(bool value)
Registers or unregisters a listener to AsyncWritableStream::eventFinish to close descriptor.
Async destination abstraction where bytes can be written to.
Definition AsyncStreams.h:190
File Descriptor (use SC::File to open and use it with strings and buffers).
Definition FileDescriptor.h:52
Wraps function pointers, member functions and lambdas without ever allocating.
Definition Function.h:19
Uses an SC::AsyncFileRead to stream data from a file.
Definition AsyncRequestStreams.h:57
Uses an SC::AsyncFileWrite to stream data from a socket.
Definition AsyncRequestStreams.h:71
An ascii string used as boolean result. SC_TRY macro forwards errors to caller.
Definition Result.h:12
Low-level OS socket handle.
Definition SocketDescriptor.h:149
View over a contiguous sequence of items (pointer + size in elements).
Definition Span.h:32
Uses an SC::AsyncFileWrite to stream data to a file.
Definition AsyncRequestStreams.h:64
Uses an SC::AsyncFileWrite to stream data to a socket.
Definition AsyncRequestStreams.h:78