Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
shutdown(2)
Edit
PageHistory
Diff
Info
LikePages
SHUTDOWN !!!SHUTDOWN NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS CONFORMING TO BUGS SEE ALSO ---- !!NAME shutdown - shut down part of a full-duplex connection !!SYNOPSIS __#include __ __int shutdown(int__ ''s''__, int__ ''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, further receives will be disallowed. If ''how'' is 1, further sends will be disallowed. If ''how'' is 2, further sends and receives will be disallowed. !!RETURN VALUE On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately. !!ERRORS __EBADF__ ''s'' is not a valid descriptor. __ENOTSOCK__ ''s'' is a file, not a socket. __ENOTCONN__ The specified socket is not connected. !!CONFORMING TO 4.4BSD (the __shutdown__ function call first appeared in 4.2BSD). !!BUGS The numerical ''how'' flags should be replaced by the Single Unix-mandated __SHUT_RD__, __SHUT_WR__, and __SHUT_RDWR__ flags. !!SEE ALSO connect(2), socket(2) ----
8 pages link to
shutdown(2)
:
socketcall(2)
Man2s
lsof(8)
socket(7)
close(2)
socket(2)
route(4)
ESHUTDOWN
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.