TcpAbort
Open topic with navigation CAPL Functions » TCP/IP API » TcpAbortValid for: CANoe DE • CANoe4SW DE
Function Syntax
Method Syntax as Constructor
Description
The function closes the TCP socket immediately and sends a reset flag (RST) to the remote socket. The aborted socket is no longer valid. In contrast to TcpClose and TcpShutdown, the connection is not closed by the regular FIN-ACK handshake. The OnTcpClose callback will be called on the remote socket.Parameters
- socket: The socket handle.
Return Values
- WSA_INVALID_PARAMETER (87): The specified socket was invalid.
- SOCKET_ERROR (-1): The function failed. Call IpGetLastError to get a more specific error code.