#include <qsoasync.h> int QsoCancelOperation(int socketDescriptor, unsigned long long operationId)
The QsoCancelOperation() function is used to cancel one or more asynchronous I/O operations that are pending on the socket. Pending operations are defined as incomplete operations that have not been posted to an I/O completion port. The canceled operations will be posted to the I/O completion port with an errnoValue of ECANCELED.
If any operations that match the operation identifier are uninterruptible, then no pending operations will be cancelled. The only operation that is uninterruptible is gsk_secure_soc_startInit() when secure negotiations have already begun.
No authorization is required.
QsoCancelOperation() returns an integer. Possible values are:
When QsoCancelOperation() fails, errno can be set to one of the following:
[EAGAIN] | At least one pending operation was uninterruptible.
If there were multiple operations pending, none were cancelled. |
[EBADF] | Invalid descriptor. |
[ENOTSOCK] | The specified descriptor is not a socket. |
[EUNKNOWN] | Unknown system state. |
Message ID | Error Message Text |
---|---|
CPFA081 E | Unable to set return value or error code. |
CPE3418 E | Possible APAR condition or hardware failure. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |