The success or failure code is the integer return code from nlsrequest(). Zero indicates success, other negative values indicate nlsrequest() failures as follows:
-
-1
- Error encountered by nlsrequest(), see t_errno.
Positive values are error return codes from the listener process. Mnemonics for these codes are defined in <listen.h>.
-
2
- Request message not interpretable.
-
3
- Request service code unknown.
-
4
- Service code known, but currently disabled.
If non-null, _nlsrmsg contains a pointer to a static, null-terminated character buffer containing the service request response message. Note that both _nlsrmsg and the data buffer are overwritten by each call to nlsrequest().
If _nlslog is non-zero, nlsrequest() prints error messages on stderr. Initially, _nlslog is zero.
|