Admin Production ni-theme
Current Publication

GetTCPSystemErrorString

LabWindows/CVI

GetTCPSystemErrorString

char *GetTCPSystemErrorString (void);

Purpose

Obtains a system message that describes the error that caused a TCP Support Library function to fail. The messages that GetTCPSystemErrorString returns can be more descriptive than the error codes the TCP Support Library functions return.

To obtain the correct system error message, you must call GetTCPSystemErrorString immediately after you call the function that failed.

Parameters

None.

Return Value

Name Type Description
errorMessage char * System error message string.

Additional Information

Library: TCP Support Library

Include file: tcpsupp.h

LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later

Examples

Refer to the following examples that use the GetTCPSystemErrorString function:

  • tcp\client.cws

    Open example
  • tcp\message.cws

    Open example
  • tcp\MultiClientServer.cws

    Open example
  • tcp\MultiThreading.cws

    Open example
  • tcp\server.cws

    Open example