双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

关于 WSASocket, 一定给分!!!

newbies newbies 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Hi, 各位!

如果我的函数调用返回错误号 10055,意思是:
No buffer space available.
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

请问这是什么意思啊?

SOCKET WSASocket (
int af,
int type,
int protocol,
LPWSAPROTOCOL_INFO lpProtocolInfo,
GROUP g,
DWORD dwFlags
);
MSDN 里面的帮助是这样的,但我没有看懂,能给我讲讲各个参数的意思和用法吗?

af
[in] An address family specification.
type
[in] A type specification for the new socket.
protocol
[in] A particular protocol to be used with the socket that is specific to the indicated address family.
lpProtocolInfo
[in] A pointer to a WSAPROTOCOL_INFO structure that defines the characteristics of the socket to be created.
g
[in] Reserved for future use with socket groups. The identifier of the socket group.
dwFlags
[in] A flag that specifies the socket attribute.

谢谢!!
...全文

相关推荐

mfc聊天程序,利用WSASocket来实现

利用WSA扩展函数进行聊天,其中也用到了多线程的思想。WSASocket进行套接字编程。 用到了IP控件以及通过IP获得主机名等技巧

「已注销」

WSASocket()函数 和 Socket()函数

创建一个与指定传送服务提供者捆绑的套接口,可选地创建和/或加入一个套接口组。 此函数为socket()的扩展版本,其功能都是创建一个原始套接字。使用时需要包含 winsock2.h 头文件和链接ws2_32.lib库。 定义 SOCKET WSASocket (   int af,   int type,   int protocol,   LPWSAPROTOCOL_INFO lpProtocolInfo,   GROUP g,   DWORD dwFlags   ); 参数说明: af:[in]一个地

东方猫

WSAsocket-server,client.rar_C wsasocket client_ServerTest.dsw_WS

简单的聊天程序,有服务器端和客户端,用异步SOCKET实现

Kinonoyomeo

Global Api Hook

本Demo版只Hook了WinSock中的幾個關鍵Api(WSASocket,WSASend,WSARecv,Socket,Send,Recv),這是全局Hook,是通過修改Dll中ExPort Function的入口代碼來實現的,不論Dll是否是Kernel System,都能Hook在Hook完后,將把通過WinSocket的數據記錄到D:TempHookLog.txt文件中(在使用時請在D:下建一個Temp目錄!)覺得有意義的可以與我連系,我還有很多這樣的Source Code(Xp Menu,Global Api Hook,Win32 PE Mark(給Win32 PE 文件加一個PassWord)...,這些全是我在平時練筆時寫下的!!!)cgh93829@21cn.comcgh93829@163.com

chenxh

易语言winsock完成端口

winsock完成端口系统结构:接受连接线程,取错误文本,ServerWorkerThread,socket,WSASocket,WSAAccept,closesocket,Connect,Send,recv,WSARecv,bind,WSAStartup,WSACleanup,htons,inet_ntoa,inet_addr,listen,accept,ntohs,sendto,recvfrom,

不善言辞的我
评论 9
收藏 已收藏
分享
返回顶部
newbies
VC/MFC 16,550 成员 421,605 内容