-
socket 网络通信 控制台程序 测试通过
socket 网络通信 控制台程序 测试通过
#include
#include
#pragma comment(lib, "ws2_32.lib")
void main()
{
WORD wVersionRequested;
WSADATA wsaData;//WSAata用来存储系统传回的关于WinSocket的资料。
int err;
wVersionRequested = MAKEWORD( 1, 1 );
err = WSAStartup( wVersionRequested, &wsaData );
if ( err != 0 ) {
return;
}
if ( LOBYTE( wsaData.wVersion ) != 1 ||HIBYTE( wsaData.wVersion ) != 1 )
{
WSACleanup( );
return;
}
SOCKET sockClient=socket(AF_INET,SOCK_STREAM,0);// AF_INET ..tcp连接
//初始化连接与端口
- 2023-07-26 07:35:05下载
- 积分:1
-
This the client part of the chat application. Clients can connect to the chat se...
This the client part of the chat application. Clients can connect to the chat server(Refer MFCChatServer Post) using this application.-This is the client part of the chat application. Clients can connect to the chat server(Refer MFCChatServer Post) using this application.
- 2022-10-16 01:05:03下载
- 积分:1
-
package of develop dns
package of develop dns
- 2022-05-26 10:29:42下载
- 积分:1
-
ngrep致力提供大多数GNU grep的共同特征,将它们应用于日…
ngrep strives to provide most of GNU grep s common features, applying them to the network layer. ngrep is a pcap-aware tool that will allow you to specify extended regular or hexadecimal expressions to match against data payloads of packets. It currently recognizes TCP, UDP and ICMP across Ethernet, PPP, SLIP, FDDI, Token Ring and null interfaces, and understands bpf filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.
- 2022-02-03 23:34:40下载
- 积分:1
-
VS2005 C # RSS源解析的范畴下,解析更快的使用…
vs2005 c# 下的一个rss源解析类,采用解析较快的xmlreader,你完全可以用此类完成你自己的rss订阅器,只需要的是介面的开发了-vs2005 c# under a rss source apportionment category, the use of analytic faster xmlreader, you can use such complete your own rss subscriptions, and only interface needed is the development of the
- 2022-12-18 10:20:03下载
- 积分:1
-
asp Guide to the foundation, and I hope to help beginners.
asp方面的基础教程,希望对初学者有所帮助。-asp Guide to the foundation, and I hope to help beginners.
- 2022-12-19 09:15:03下载
- 积分:1
-
linux 下实现网络代理功能的源码
linux 下实现网络代理功能的源码-agent network function source
- 2022-09-17 19:50:02下载
- 积分:1
-
一个简易的聊天程序
一个简易的聊天程序-a simple chat program
- 2022-08-23 14:48:39下载
- 积分:1
-
微软的http服务器实例代码
微软的http服务器实例代码-Microsoft http server code examples
- 2022-03-18 19:47:17下载
- 积分:1
-
在网页中嵌入媒体播放器
在网页中嵌入媒体播放器-embedded in the Web page media player
- 2022-01-31 13:32:18下载
- 积分:1