When To Shut Down A Socket - HP Rp3440-4 - 9000 - 0 MB RAM Programmer's Manual

Bsd sockets interface programmer’s guide
Hide thumbs Also See for Rp3440-4 - 9000 - 0 MB RAM:
Table of Contents

Advertisement

Parameter
s
socket descriptor
how
number that indicates
the type of shutdown
Function result: 0 if shutdown is successful, –1 if failure occurs.
Example:
shutdown (s, 1);

When to Shut Down a Socket

Optionally, after the process has sent all messages and wants to indicate
that it is done sending, shut down the server or client process. Refer to
the shutdown(2) man page for more information on shutdown.
Chapter 3
Description of
Contents
Advanced Topics for Stream Sockets
Using Shutdown
INPUT Value
socket descriptor of socket
to be shut down
0, 1 or 2
79

Advertisement

Table of Contents
loading

Table of Contents