4#include "../Async/Async.h"
5#include "AsyncStreams.h"
11template <
typename AsyncRequestType>
19 AsyncRequestType request;
24 bool autoCloseDescriptor =
false;
25 bool justUnrefBuffer =
false;
30 void onCloseStopRequest();
33template <
typename AsyncRequestType>
38 template <
typename DescriptorType>
40 const DescriptorType& descriptor);
45 AsyncRequestType request;
51 bool autoCloseDescriptor =
false;
52 bool justUnrefBuffer =
false;
58 void onFinishStopRequest();
Definition AsyncStreams.h:51
Holds a Span of AsyncBufferView (allocated by user) holding available memory for the streams.
Definition AsyncStreams.h:139
Asynchronous I/O (files, sockets, timers, processes, fs events, threads wake-up) (see Async) AsyncEve...
Definition Async.h:1198
Async source abstraction emitting data events in caller provided byte buffers.
Definition AsyncStreams.h:176
Definition AsyncRequestStreams.h:13
void setAutoCloseDescriptor(bool value)
Automatically closes descriptor during read stream close event.
Definition AsyncRequestStreams.h:17
Definition AsyncRequestStreams.h:35
void setAutoCloseDescriptor(bool value)
Automatically closes descriptor during write stream finish event.
Definition AsyncRequestStreams.h:43
Async destination abstraction where bytes can be written to.
Definition AsyncStreams.h:266
[UniqueHandleDeclaration2Snippet]
Definition File.h:78
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:63
Uses an SC::AsyncFileWrite to stream data from a socket.
Definition AsyncRequestStreams.h:77
An ascii string used as boolean result. SC_TRY macro forwards errors to caller.
Definition Result.h:12
Low-level OS socket handle.
Definition Socket.h:153
View over a contiguous sequence of items (pointer + size in elements).
Definition Span.h:29
Uses an SC::AsyncFileWrite to stream data to a file.
Definition AsyncRequestStreams.h:70
Uses an SC::AsyncFileWrite to stream data to a socket.
Definition AsyncRequestStreams.h:84