tlsGetLastErrorAsString
CAPL Functions » TLS API » tlsGetLastErrorAsString Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Retrieves the error message of the last operation that failed on a specified socket.Parameters
- socket: The socket handle.
- buffer: The buffer used to store the error message.
- bufferLength: 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.