Terminate the connection, closing
the socket and releasing the memory allocated for the session.
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
Once the connection has been terminated, the class instance socket
handle is no longer valid and should no longer be used. Note that it
is possible that the actual handle value may be re-used at a later
point when a new connection is established. An application should
always consider the socket handle to be opaque and never depend on it
being a specific value.
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
Abort,
Accept, Connect,
DisableEvents,
EnableEvents,
Listen
|