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>
44 AsyncRequestType request;
50 bool autoCloseDescriptor =
false;
51 bool justUnrefBuffer =
false;
57 void onFinishStopRequest();
struct SC_COMPILER_EXPORT Function
Wraps function pointers, member functions and lambdas without ever allocating.
Definition Function.h:19
Definition AsyncStreams.h:52
Holds a Span of AsyncBufferView (allocated by user) holding available memory for the streams.
Definition AsyncStreams.h:140
Asynchronous I/O (files, sockets, timers, processes, fs events, threads wake-up) (see Async) AsyncEve...
Definition Async.h:1195
Async source abstraction emitting data events in caller provided byte buffers.
Definition AsyncStreams.h:187
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:42
Async destination abstraction where bytes can be written to.
Definition AsyncStreams.h:284
[UniqueHandleDeclaration2Snippet]
Definition File.h:78
Uses an SC::AsyncFileRead to stream data from a file.
Definition AsyncRequestStreams.h:62
Uses an SC::AsyncFileWrite to stream data from a socket.
Definition AsyncRequestStreams.h:74
An ascii string used as boolean result. SC_TRY macro forwards errors to caller.
Definition Result.h:13
Low-level OS socket handle.
Definition Socket.h:153
Uses an SC::AsyncFileWrite to stream data to a file.
Definition AsyncRequestStreams.h:68
Uses an SC::AsyncFileWrite to stream data to a socket.
Definition AsyncRequestStreams.h:80