attempts to separate communications errors from system
errors by defining two levels of errors:
Library level errors.
Each library function has one or more error returns and indicates
failure with a -1.
An external integer,
holds the specific error number when such an failure occurs.
This value is set when errors occur but is not cleared by successful
It should therefore be tested only after an error has been indicated.
A diagnostic function,
is provided for printing out information on the current transport
The standard external variable
is used to report system errors.
Such errors can, of course, affect
When they do,
is set to
is set to show the specific system error that occurred.
of the transport provider may change if a transport error occurs.
The socket interface provides a similar facility with
when called with an option of
In applications linked with the Threads Library, distinct instances of
will be supported for each thread.
``Multithreaded network programming''
for more information about using the Transport Interface
and the Socket Interface with the Threads Library.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005