4#include "../Async/Async.h"
5#include "AsyncStreams.h"
11template <
typename AsyncRequestType>
16 template <
typename DescriptorType>
18 const DescriptorType& descriptor);
23 AsyncRequestType request;
31 void onEndCloseDescriptor();
34template <
typename AsyncRequestType>
39 template <
typename DescriptorType>
41 const DescriptorType& descriptor);
46 AsyncRequestType request;
55 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:933
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:36
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
Wraps function pointers, member functions and lambdas without ever allocating.
Definition: Function.h:50
Uses an SC::AsyncFileRead to stream data from a file.
Definition: AsyncRequestStreams.h:60
Uses an SC::AsyncFileWrite to stream data from a socket.
Definition: AsyncRequestStreams.h:64
An ascii string used as boolean result. SC_TRY macro forwards errors to caller.
Definition: Result.h:12
View over a contiguous sequence of items (pointer + size in elements).
Definition: Span.h:21
Uses an SC::AsyncFileWrite to stream data to a file.
Definition: AsyncRequestStreams.h:62
Uses an SC::AsyncFileWrite to stream data to a socket.
Definition: AsyncRequestStreams.h:66