关于 WSASocket, 一定给分!!!
如果我的函数调用返回错误号 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实现
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
易语言winsock完成端口
winsock完成端口系统结构:接受连接线程,取错误文本,ServerWorkerThread,socket,WSASocket,WSAAccept,closesocket,Connect,Send,recv,WSARecv,bind,WSAStartup,WSACleanup,htons,inet_ntoa,inet_addr,listen,accept,ntohs,sendto,recvfrom,



