SockErrMsg | Returns an error message for a specified RXSOCK error name. |
SockPSock_Errno | Displays an error message for the last RXSOCK error. |
SockSock_Errno | Returns the Berkeley error number of the last sockets library operation, or returns an error name that corresponds to a Berkeley error number. |
Returns an error message pertaining to the specified RXSOCK Error Name.
Synopsis
err_message = SockErrMsg(ErrNo)
Args
Returns
Notes
If passed an Error Name that it doesn't recognize, then SockErrMsg simply returns that same Error Name as the error message. For example, the following call:
SockErrMsg("CTRL-C")will return an error message of CTRL-C.
Displays an error message for the last RXSOCK error.
Synopsis
CALL SockPSock_Errno(message)
Args
message is an optional string that is output prior to the error message. A colon followed by a space will be automatically appended to it before the error message is also appended.
Notes
For Windows, the error message is displayed in a message box, and message is the title of the box.
For other operating systems, SockPSock_Errno simply calls the sockets library function psock_errno(). The error message is written to STDERR, and the message pertains only to the last sockets library function (not necessarily the last RXSOCK error). In this case, SockPSock_Errno() is provided only for backward compatibility with older scripts. A script should instead use SockErrMsg() to retrieve an error message that truly reflects the last RXSOCK error, and then use whatever means the script desires to output the message.
Returns the Berkeley error number of the last sockets library operation, or returns an error name that corresponds to a Berkeley error number.
Synopsis
result = SockSock_Errno(BerkeleyNumber)
Args
BerkeleyNumber is the number for which you want the corresponding Symbolic error name.
Returns
Notes