-
用C++编写的网络通信框架的多
用c++编写的网络通信框架,适用于多客户端的网络通信
client: 模拟客户端程序
server: 模拟服务端程序
gateway:网关程序
启动:client.exe server.exe gateway.exe程序,client程序会网关gateway.exe发送消息
消息内容为字符:00004XXXX XXXX为字符,是使用 04d打印到BUF中的,
gateway.exe收到client.exe发送的消息,此时从系统路由表中取到:B_HOST的信息,并把
收到的消息转发到server.exe程序,如果server.exe程序作相应处理,还可以作为应答,把
消息返回给client.exe,如果要这么实现的话,需要加流水信息-Using c++ to prepare the framework of network communication for multi-client network client: client simulation server: process simulation server gateway: Gateway proceedings: client.exe server.exe gateway.exe procedures, client program will be the gateway message send a message gateway.exe for characters: 00004XXXX XXXX for the characters, is to use 04d to BUF in print, gateway.exe received messages sent client.exe, this time from the system to check the routing table: B_HOST the information, and forwarded to the information received server.exe procedure, if the corresponding procedures to deal with server.exe, but also can serve as a response to the n
- 2022-12-19 19:45:02下载
- 积分:1
-
DNS的源代码分析
dns 解析源代码-dns source code analysis
- 2022-01-24 13:55:30下载
- 积分:1
-
文件传输程序几源码
文件传输程序几源码-file transfer procedures several FOSS
- 2022-02-11 17:20:59下载
- 积分:1
-
这是一个在vc++开发环境下简单设计网络聊天的程序
这是一个在vc++开发环境下简单设计网络聊天的程序-in vc++ development environment, simply chatting network design procedures
- 2022-11-14 18:35:03下载
- 积分:1
-
ASP编写的网站
ASP编写的网站-prepared by the ASP website
- 2023-05-13 06:45:03下载
- 积分:1
-
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
-
cisco-2950交换机的应用程序的源代码
cisco-2950交换机的应用程序的源代码-cisco- 2,950 switchboards application procedures source code
- 2022-06-06 14:47:33下载
- 积分:1
-
一个FTP应用程序,该程序完成以下功能:⒈登录FTP服务器;⒉显示登录FTP服务器目录下的文件和目录名;⒊提供文件下载上传服务...
一个FTP应用程序,该程序完成以下功能:⒈登录FTP服务器;⒉显示登录FTP服务器目录下的文件和目录名;⒊提供文件下载上传服务-An FTP application, the program is complete the following features: ⒈ login FTP server ⒉ display the login FTP server directory under the file and directory names ⒊ upload service to provide file download
- 2022-09-21 22:05:03下载
- 积分:1
-
c#实现modbus TCP通讯
c#实现的modbus与设备之间的TCP通讯,可以读取数据。
- 2022-10-23 10:00:08下载
- 积分:1
-
VBSCRIPT the source, I think a lot of html programmers will be used, These small...
VBSCRIPT的源码,相信很多html程序员都会用到,这些源码小小变动一下,可以用在很多地方,尤其在DHTML中!-VBSCRIPT the source, I think a lot of html programmers will be used, These small changes in the source code that can be used in many places, especially in DHTML!
- 2023-05-31 10:15:03下载
- 积分:1