IpGetLastSocketErrorAsString
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Method Syntax
Description
The function retrieves the error message of the last operation that failed on the specified socket (see Winsock 2 error code).Parameters
- socket: The socket handle.
- text: The buffer used to store the error message.
- count: The size of the text buffer.
Return Values
- 0: The error message was written into the text buffer. In case of an invalid error code, the error message has the format “Unknown error: x” assuming the last error code x for the specified socket.
- WSA_INVALID_PARAMETER (87): The specified socket was invalid.