shutdown.2

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 42 行

2
42
字号
.\" 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 + =
减小字号Ctrl + -
显示快捷键?