Winsock API: closesocket
来源:互联网 发布:手机制作动画片软件 编辑:程序博客网 时间:2024/05/06 23:17
参考MSDN:http://msdn.microsoft.com/en-us/library/windows/desktop/ms737582(v=vs.85).aspx
The closesocket function closes an existing socket.
Syntax
int closesocket(
_In_ SOCKET s
);
Parameters
- s [in]
A descriptor identifying the socket to close.
Return value
If no error occurs, closesocket returns zero. Otherwise, a value ofSOCKET_ERROR is returned, and a specific error code can be retrieved by callingWSAGetLastError.
Remarks
The closesocket function closes a socket. Use it to release the socket descriptor passed in thes parameter. Note that the socket descriptor passed in the s parameter may immediately be reused by the system as soon asclosesocket function is issued. As a result, it is not reliable to expect further references to the socket descriptor passed in thes parameter to fail with the error WSAENOTSOCK. A Winsock client must never issue closesocket ons concurrently with another Winsock function call.
- Winsock API: closesocket
- closesocket()
- Closesocket
- [经验总结]调用WinSock的closesocket函数出现死锁的解决办法
- 区分 WinSock中,closesocket 和 shutdown的作用
- (转载) socket:10038错误{winSock的一个bug:当closesocket多次错误使用时会导致问题}
- Winsock基本的api
- Winsock API TCPServer
- Winsock API 编程介绍
- WinSock之基础API
- Winsock API 函数大全
- WINSOCK API 学习笔记
- Winsock API 编程介绍
- Winsock API 编程介绍
- 1.WINSOCK API
- WinSock API 入门
- WinSock API 常用函数
- Winsock API 编程介绍
- 从标签中取值
- 关键字static,const,volatile,auto,register
- php一个很纠结的问题---括号
- JPEG图像的解压缩操作
- POJ 2135 Farm Tour (费用流)
- Winsock API: closesocket
- Jboss7 现在外部访问,只允许本地访问
- (iPhone/iPad)代码调用“设置”中的定位服务And系统其他相关功能设置
- The Basical Description Of CWDM OADM
- 脚本系统:c++内嵌python
- 给自学者的建议:想学游戏编程开发,你需要做什么?
- 二维数组螺旋遍历
- 浏览器兼容性问题杂烩(积累)
- Winsock API: WSACleanup