shutdown
shutdown socket, how
- Shuts down a socket connection in the manner indicated by how. If how is
0
, further receives are disallowed. If how is1
, further sends are disallowed. If how is2
, everything is disallowed.(This function will not shut down your system; you'll have to execute an external program to do that. See
system
.)