Immediately close the socket without
waiting for any remaining data to be written out.
Parameters
None.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The Abort method should only be used when the connection
must be closed immediately before the application terminates. This method
should only be used to abort client connections and should not be used
with passive (listening) sockets. Server applications that need to
abort an incoming client connection should use the Reject method.
In most cases, the application should call the Disconnect
method to gracefully close the connection to the remote host.
Aborting the connection will discard any buffered data and may cause
errors or result in unpredictable behavior.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header: Include cswsock10.h
Import Library: cswskv10.lib
See Also
Cancel,
Disconnect,
Reject
|