📄 shutdown.2
字号:
.\" SCCSID: @(#)shutdown.2 8.1 9/11/90.TH shutdown 2.SH Nameshutdown \- shut down full-duplex connection.SH Syntax.nf.ft Bshutdown(s, how)int s, how;.fi.SH Description.NXR "shutdown system call".NXR "socket" "shutting down full-duplex connection"The.PN shutdowncall causes all or part of a full-duplex connection onthe socket associated with.I sto be shut down.If \fIhow\fP is 0, further receives are disallowed.If \fIhow\fP is 1, further sends are disallowed.If \fIhow\fP is 2, further sends and receives are disallowed..SH Return ValuesA zero (0) is returned if the call succeeds, \-1 if it fails..SH DiagnosticsThe call succeeds unless:.TP 15[EBADF]The.I sargument is not a valid descriptor..TP 15[ENOTSOCK]The .I sargument is a file, not a socket..TP 15[ENOTCONN]The specified socket is not connected..SH See Alsoconnect(2), socket(2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -