Home
Library
Online Compilers
Jobs
Whiteboard
Tools
Articles
Write & Earn
Courses
Certifications
Menu
Categories
Login
Switch theme
Category
AI, ML, and Data Science
Programming Languages
Web Development Languages
DevOps
Databases
Computer Science Subjects
Python Technologies
Software Testing
Cyber Security
All Categories
Back
Artificial Intelligence
Machine Learning
ML With Python
Data Science
Statistics
NLP
Neural Networks
TensorFlow
PyTorch
Matplotlib
NumPy
Pandas
SciPy
Big Data Analytics
See all
Back
Python
Java
C++
C
PHP
Go
Kotlin
R
ASP.Net
C#.Net
VB.Net
Scala
Swift
Perl
Ruby
Rust
Lua
See all
Back
HTML
CSS
JavaScript
jQuery
ReactJs
NodeJs
Wordpress
AngularJs
PHP
Django
JSON
Codeigniter
TypeScript
Ajax
Bootstrap
Sass
AppML
See all
Back
GIT
AWS
Docker
Kubernetes
Azure
Gitlab
Jira
Gerrit
Ansible
Bugzilla
Chef
SaltStack
OpenShift
Puppet
UNIX
Linux Admin
Ubuntu
See all
Back
DBMS
SQL
PL/SQL
MySQL
TinyDB
SQL Server
MongoDB
PostgreSQL
SQLite
Redis
PHP MyAdmin
MariaDB
CouchDB
DB2
See all
Back
Computer Fundamentals
Operating System
DBMS
DSA
Computer Networks
Software Engineering
Computer Graphics
Data Mining
Digital Marketing
SEO
Digital Circuits
Discrete Mathematics
Cryptography
Cloud Computing
Compiler Design
Embedded Systems
Microprocessors
See all
Back
Python
NumPy
Pandas
Matplotlib
Django
PyQt
PyCharm
Pillow
OpenCV
Seaborn
ML with Python
SciPy
See all
Back
Software Testing
Jira
Selenium
TestRail
Postman
Cucumber
Cypress
Watir
Agile
jMeter
Back
Blockchain
Information Security
Computer Security
Internet Security
Network Security
Wireless Security
Library
Courses
Certifications
Login
Menu
Show search
SQL
HTML
CSS
Javascript
Python
Java
C
C++
PHP
Scala
C#
Tailwind CSS
Node.js
MySQL
MongoDB
PL/SQL
Swift
Bootstrap
R
Machine Learning
Blockchain
Angular
React Native
Computer Fundamentals
Compiler Design
Operating System
Data Structure and Algorithms
Computer Network
DBMS
Excel
精選閱讀
UPSC IAS考試筆記
開發者最佳實踐
問答
有效的簡歷撰寫
人力資源面試問題
計算機詞彙表
名人錄
shutdown() - Unix,Linux系統呼叫 - 技術教學
網頁
本網站
Unix初學者指南
Unix - 首頁
Unix - 入門
Unix - 檔案管理
Unix - 目錄
Unix - 檔案許可權
Unix - 環境
Unix - 基本實用程式
Unix - 管道和過濾器
Unix - 程序
Unix - 通訊
Unix - vi編輯器
Unix Shell程式設計
Unix - 什麼是Shell?
Unix - 使用變數
Unix - 特殊變數
Unix - 使用陣列
Unix - 基本運算子
Unix - 決策
Unix - Shell迴圈
Unix - 迴圈控制
Unix - Shell替換
Unix - 引號機制
Unix - I/O重定向
Unix - Shell函式
Unix - 手冊頁幫助
高階Unix
Unix - 正則表示式
Unix - 檔案系統基礎
Unix - 使用者管理
Unix - 系統性能
Unix - 系統日誌
Unix - 訊號和陷阱
Unix有用參考
Unix - 有用命令
Unix - 快速指南
Unix - 內建函式
Unix - 系統呼叫
Unix - 命令列表
Unix有用資源
Unix有用資源
精選閱讀
計算機詞彙表
名人錄
版權所有 © 2014 tutorialspoint
首頁
參考
討論論壇
關於TP
shutdown() - Unix,Linux系統呼叫
廣告
名稱
shutdown - 關閉全雙工連線的一部分
概要
#include <sys/socket.h>
int shutdown(int
s
, int
how
);
描述
shutdown
() 呼叫導致與
s
關聯的套接字上的全雙工連線的全部或部分關閉。如果
how
為
SHUT_RD
,則將不允許進一步接收。如果
how
為
SHUT_WR
,則將不允許進一步傳輸。如果
how
為
SHUT_RDWR
,則將不允許進一步接收和傳輸。
返回值
成功時返回零。出錯時返回 -1,並適當地設定
errno
。
錯誤
標籤
描述
EBADF
s
不是有效的描述符。
ENOTCONN
指定的套接字未連線。
ENOTSOCK
s
是檔案,而不是套接字。
備註
常量 SHUT_RD、SHUT_WR、SHUT_RDWR 的值分別為 0、1、2,自 glibc-2.1.91 起在
<sys/socket.h>
中定義。
符合標準
POSIX.1-2001, 4.4BSD(
shutdown
() 函式呼叫首次出現在 4.2BSD 中)。
參見
connect (2)
socket (2)
廣告
廣告
列印頁面
上一頁
下一頁
廣告