Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ shutdown(3N) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

connect(3N)

socket(3N)

shutdown(3N)                                                   shutdown(3N)

NAME
     shutdown - shut down part of a full-duplex connection

SYNOPSIS
     int shutdown(int s, int how);

DESCRIPTION
     The shutdown() call shuts down all or part of a full-duplex connection
     on the socket associated with s. If how is 0, then further receives
     will be disallowed. If how is 1, then further sends will be disal-
     lowed. If how is 2, then further sends and receives will be disal-
     lowed.

RETURN VALUE
     A 0 is returned if the call succeeds, -1 if it fails.

DIAGNOSTICS
     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.

     ENOMEM          The user memory available was not sufficient to com-
                     plete the operation.

     ENOSR           The STREAMS resources available were not sufficient to
                     complete the operation.

NOTE
     The how values should be defined constants.

SEE ALSO
     connect(3N), socket(3N).



















Page 1                       Reliant UNIX 5.44                Printed 11/98

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