-
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
-
一个数据库连接池的java好程序
一个数据库连接池的java好程序-a database connection pool of java good procedures
- 2022-01-25 20:56:15下载
- 积分:1
-
发送带附件Email
发送带附件Email-send an attachment Email
- 2022-06-20 04:14:24下载
- 积分:1
-
简易扣扣聊天
java写的简易扣扣聊天,可多人聊天。
- 2022-06-15 08:02:25下载
- 积分:1
-
UDP传输文件
使用UDP Socket传输文件。2G的文件大约5分钟左右,已经经过细致测试。
- 2022-02-01 14:32:47下载
- 积分:1
-
vs2005下用c#写的八数码游戏,目标状态是固定的
vs2005下用c#写的八数码游戏,目标状态是固定的-vs2005 using c# to write the eight digital games, the goal state is fixed
- 2023-04-22 09:50:03下载
- 积分:1
-
简单的ftp客户端下载程序,我用了一下,还不错。
简单的ftp客户端下载程序,我用了一下,还不错。-simple ftp client download, I used a bit, quite good.
- 2022-02-25 06:59:40下载
- 积分:1
-
yo this is true I was the laughing stock of the Ha Ha
这个程序不错哟 这个是本人写的 哈哈 见笑了-yo this is true I was the laughing stock of the Ha Ha
- 2022-04-22 14:17:12下载
- 积分:1
-
用vc实现的网络编程源代码,本程序主要实现TFTP协议
用vc实现的网络编程源代码,本程序主要实现TFTP协议-Achieved with the vc network programming source code, the main achievement of this procedure TFTP protocol
- 2022-02-04 11:25:39下载
- 积分:1
-
the use of fack!
课程设计的用的,不知道有没有用,这个网站真的很烦啊,还哟奥有二十个字,搞什么啊!-the use of fack!
- 2023-05-20 10:15:03下载
- 积分:1