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;
51 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:965
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.
Definition: AsyncRequestStreams.h:32
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:56
Uses an SC::AsyncFileWrite to stream data from a socket.
Definition: AsyncRequestStreams.h:70
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:147
View over a contiguous sequence of items (pointer + size in elements).
Definition: Span.h:24
Uses an SC::AsyncFileWrite to stream data to a file.
Definition: AsyncRequestStreams.h:63
Uses an SC::AsyncFileWrite to stream data to a socket.
Definition: AsyncRequestStreams.h:77