Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ shutdown(SSC) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

connect(SSC)

socket(SSC)


 shutdown(SSC)                  6 January 1993                  shutdown(SSC)


 Name

    shutdown - shut down part of a full-duplex connection

 Syntax


    int 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 disal-
    lowed.

 Return value

    A return value of zero indicates that the call succeeded.  A return value
    of -1 indicates that an error occurred, and in this case an error code is
    stored in the global variable errno.

 Errors

    The call fails if:

    [EBADF]        The argument s is not a valid descriptor.

    [ENOTSOCK]     The argument s is a file, not a socket.

    [ENOTCONN]     The specified socket is not connected.

 See also

    connect(SSC) and socket(SSC).


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