HP X.25/9000 Programmer's Guide
44 Chapter3
Establishing and Terminating a Socket Connection
Terminating a Connection
err On successful completion,
err
is set to 0. Otherwise, a value of –1 is
returned and
errno
is set to indicate the error.
The shutdown() and close() calls differ in that shutdown() takes
effect regardless of the number of open socket descriptors, while close()
takes effect only when the last process with an open socket descriptor
makes the call.
NOTE The shutdown() call does not free internal system resources associated
with the socket. To free this buffer space, you must issue a close() call.
Refer to the shutdown(2) entry in yourman pages for more information.
36960-90061.bk Page 44 Friday, November 10, 2000 3:42 PM










