Internet Library Error Codes
The Internet Library functions return negative values when they detect errors. The following table lists the error codes, defined constants, and error messages associated with functions in the the LabWindows/CVI Internet Library.
Use the InetGetErrorMessage function function to convert the error code, returned in the result parameter of Internet Library functions, into meaningful error messages.
Error codes are defined in the cvi\include\cvintwrk.h file.
Code | Defined Constant | Error Message |
---|---|---|
0 | kInetNoError | Success |
–1 | kInetInvalidParameter | Invalid parameter |
–2 | kInetOutOfMemory | Out of memory |
–3 | kInetTimeOut | Operation timed out |
–4 | kInetSocketError | System socket error |
–5 | kInetTooManyConnections | Maximum number of FTP connections already open |
–6 | kInetFileError | A file operation failed |
–7 | kInetMailError | Error in sending mail |
–8 | kInetFTPInvalidHandle | Invalid FTP handle |
–9 | kInetFTPCannotConnect | Cannot connect to FTP server |
–10 | kInetFTPLostConnection | Lost connection to FTP server |
–11 | kInetFTPCommandFailed | FTP command failed; try using InetFTPSetPassiveMode |
–12 | kInetFTPServerError | FTP server error |
–13 | kInetFTPFileError | A file error occurred in an FTP function |
–14 | kInetFTPUnauth | Not authorized to access FTP server with given user ID and password |
–15 | kInetFTPNoPortFree | No free ports available to establish data connection |
–16 | kInetFTPBufferIsEmpty | FTP buffer is empty |
–17 | kInetCouldNotLaunchBrowser | Could not find or launch the default Web browser |
–18 | kInetDllLoadError | Failed to load cvintwrk.dll |
–19 | kInetFunctionNotFound | Failed to find required function in cvintwrk.dll |
–20 | kInetCouldNotCreateMutex | Failed to create necessary lock object |
–21 | kInetTelnetInvalidHandle | Invalid Telnet handle |
–22 | kInetTelnetCannotConnect | Cannot connect to Telnet server |
–23 | kInetTelnetTooManyConnections | Maximum number of Telnet connections already open |
–24 | kInetTelnetTimeoutNoBytesRead | Operation timed out; no data was read from the Telnet connection |
–25 | kInetTelnetTimeoutStringNotFound | Operation timed out; data was successfully read from the Telnet connection, but string to match was not found |
–26 | kInetIcmpDllLoadError | Failed to load icmp.dll for ping operation |
–27 | kInetIcmpFunctionNotFound | Failed to find required function in icmp.dll for ping operation |
–28 | kInetIcmpError | ICMP function failed during ping operation |
–29 | kInetPop3ServerError | POP3 server returned error; check your input |
–30 | kInetMailParseError | Failed to parse POP3 data |
–31 | kInetHostNotFound | Host not found |
–32 | kInetFunctionNotSupported | Function not supported on this platform |
–33 | kInetFTPCalledFromCallback | This function cannot be called from the FTP command data callback |
–34 | kInetFTPCalledOutsideCallback | This function cannot be called from outside the FTP command data callback |