Cancel the current blocking socket operation.
When the Cancel method is called, the blocking socket operation will not immediately fail. An internal flag is set which causes the blocking operation to exit with an error. This means that the application cannot cancel an operation and immediately perform some other blocking function. Instead it must allow the calling stack to unwind, returning back to the blocking operation before making any further function calls.
This implementation of the method can only be used within a class event handler, or a method that has been invoked from within an event handler. If you need to call the Cancel method outside of an event handler, you must explicitly specify the client handle.