AsyncAcceptRequest

Calls AcceptEx on Windows and emulates it on other systems.

NOT IMPLEMENTED / NOT STABLE

version(HasSocket)
class AsyncAcceptRequest : AsyncOperationRequest {
AsyncSocket socket;
}

Mixed In Members

From mixin OverlappedIoRequest!(AsyncAcceptResponse, LowLevelOperation)

repeat
void repeat()

Repeats the operation, restarting the request.

Inherited Members

From AsyncOperationRequest

start
void start()

Actually issues the request, starting the operation.

cancel
void cancel()

Cancels the request. This will cause isComplete to return true once the cancellation has been processed, but AsyncOperationResponse.wasSuccessful will return false (unless it completed before the cancellation was processed, in which case it is still allowed to finish successfully).

isComplete
bool isComplete()

Returns true if the operation has been completed. It may be completed successfully, cancelled, or have errored out - to check this, call waitForCompletion and check the members on the response object.

waitForCompletion
AsyncOperationResponse waitForCompletion()

Waits until the request has completed - successfully or otherwise - and returns the response object. It will run an ad-hoc event loop that may call other callbacks while waiting.

Meta