7. Network error
The additional error code is a network-specific error code, if it is less than 256 or over 280 or a DP4 network error code (listed in NETWORK.H) otherwise. Windows uses error codes above 10000 for TCP/IP errors. From version 4.620, where appropriate the network error code will be reported as an operating system error, rather than as an additional error. This allows the operating system message associated with socket related errors to be displayed, though this is only supported on Windows 2000 or later. (Other versions of Windows will display a blank or corrupt message).
Your strategy for recovering from this type of error should be to use the correct level of resilience unless you are using the named server configuration and manage your own connections.
You can attempt to carry on after this error, but will need to establish a new connection by closing the old connection and reinitialising.
Common additional error codes are:
| Code | Meaning |
|---|---|
| 256 | The requester believes the DP4 server is not running |
| 259 | The application program is trying to access a server without initialising properly. This error commonly arises if a program that has encountered a network error and has been logged off as a result attempts to continue to use its "dead" connection. |
| 264 | The network requester believes a reply from a server is invalid. |
| 268 | The network requester and server or AUXDISTR are from incomptible releases of DP4. |
| 10053 | Winsock - Connection aborted |
| 10054 | Winsock - Connection reset |
| 10060 | Winsock - Connection time-out |
| 10061 | Winsock - Connection refused |
| 10064 | Winsock - Host down |
| 10065 | Winsock - Host unreachable |
Other Errors in the 10000 range are documented in the Windows header file winsock.h. On Windows 2000 and Windows XP you can run FAIL 7 100nn to display the text associated with Winsock errors.
Unix socket errors will usually be found in the header file /usr/include/sys/errno.h
If you are using NetBIOS programs (NTBW and NTBMGR for example), the additional error code is a NetBIOS return code.