Public Member Functions | |
| size_t | getBytesTransferred () const |
| Get the number of bytes transferred. | |
| bool | usedZeroCopy () const |
| Check if zero-copy was used for this transfer. | |
| bool | isComplete () const |
| Check if the entire requested range was sent. | |
Public Member Functions inherited from SC::AsyncResultOf< AsyncFileSend, CompletionData > | |
| AsyncFileSend & | getAsync () |
| const AsyncFileSend & | getAsync () const |
| AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr) | |
| Constructs an async result from a request and a result. | |
Public Member Functions inherited from SC::AsyncResult | |
| AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr) | |
| Constructs an async result from a request and a result. | |
| void | reactivateRequest (bool shouldBeReactivated) |
| Ask the event loop to re-activate this request after it was already completed. | |
| const SC::Result & | isValid () const |
| Check if the returnCode of this result is valid. | |
Additional Inherited Members | |
Public Attributes inherited from SC::AsyncResultOf< AsyncFileSend, CompletionData > | |
| CompletionData | completionData |
| int32_t | eventIndex |
Public Attributes inherited from SC::AsyncResult | |
| AsyncEventLoop & | eventLoop |
| AsyncRequest & | async |
Protected Attributes inherited from SC::AsyncResult | |
| bool | shouldCallCallback = true |
| bool * | hasBeenReactivated = nullptr |
| SC::Result & | returnCode |
|
inlinenodiscard |
Get the number of bytes transferred.
|
inlinenodiscard |
Check if the entire requested range was sent.
|
inlinenodiscard |
Check if zero-copy was used for this transfer.