:man| Alphabetical   Categories   About us 
 
SHUTDOWN (2) | System calls | Unix Manual Pages | :man

NAME

shutdown - shut down part of a full-duplex connection

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also
Standards
History

LIBRARY


.Lb libc

SYNOPSIS


.In sys/types.h
.In sys/socket.h int shutdown "int s" "int how"

DESCRIPTION

The shutdown system call causes all or part of a full-duplex connection on the socket associated with the file descriptor s to be shut down. The how argument specifies the type of shutdown. Possible values are:
SHUT_RD further receives will be disallowed.
SHUT_WR further sends will be disallowed.
SHUT_RDWR
further sends and receives will be disallowed.

RETURN VALUES


.Rv -std shutdown

ERRORS

The shutdown system call fails if:
[EBADF]
The s argument is not a valid file descriptor.
[EINVAL]
The how argument is invalid.
[ENOTCONN]
The socket is not connected.
[ENOTSOCK]
The s argument does not refer to a socket.

SEE ALSO

connect(2), socket(2)

STANDARDS

HISTORY

 
Created by Blin Media, 2008-2013