Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ shutdown(2) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

connect(2)

socket(2)



shutdown(2)                    DG/UX R4.11MU05                   shutdown(2)


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

SYNOPSIS
       int  shutdown (s, how)
       int  s;
       int  how;

   where:
       s      File descriptor of socket to shut down

       how    Flag (0, 1, or 2) for what to shut down

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
       disallowed.  If how is 2, then further sends and receives will be
       disallowed.

ACCESS CONTROL
       None.

RETURN VALUE
       0      Completed successfully.

       -1     An error occurred.  errno is set to indicate the error.

DIAGNOSTICS
       Errno may be set to one of the following error codes:

       EBADF  The argument s is not an active valid descriptor.

       ENOTSOCK
              s is a file, not a socket.

       ENOTCONN
              The specified socket is not connected.

       EINVAL The how parameter is out of range.

SEE ALSO
       connect(2), socket(2).


Licensed material--property of copyright holder(s)

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