Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ shutdown(2) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

connect(2)

socket(2)

SHUTDOWN(2)  —  Silicon Graphics

NAME

shutdown − shut down part of a full-duplex connection

SYNOPSIS

shutdown(s, how)
int s, how;

DESCRIPTION

The shutdown call causes all or part of a full-duplex connection on the socket associated with s to be shut down.  If how is 0, then further receives will be disallowed.  If how is 1, then further sends will be disallowed.  If how is 2, then further sends and receives will be disallowed. 

DIAGNOSTICS

A 0 is returned if the call succeeds, −1 if it fails. 

ERRORS

The call succeeds unless:

[EBADF] S is not a valid descriptor. 

[ENOTSOCK] S is a file, not a socket. 

[ENOTCONN] The specified socket is not connected. 

NOTE

The primitives documented on this manual page are system calls, but unlike most system calls they are not resolved by libc.  To compile and link a program that makes these calls, follow the procedures for section (3B) routines as described in intro(3).

SEE ALSO

connect(2), socket(2)

Version 3.6  —  December 20, 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026