文件名称:gateway
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 25kb
- 下载次数:
- 0次
- 提 供 者:
- car***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用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 fr a mework 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 news back to the client.exe, so if true, the need for additional water information
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 fr a mework 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 news back to the client.exe, so if true, the need for additional water information
(系统自动生成,下载前可以参看下载内容)
下载文件列表
client
......\client.cpp
......\client.dsp
......\client.plg
......\ReadMe.txt
......\socket.h
......\StdAfx.cpp
......\StdAfx.h
framework
.........\include
.........\.......\exception.h
.........\.......\framework.h
.........\.......\global.h
.........\.......\mutex.h
.........\.......\MyGateway.h
.........\.......\queue.h
.........\.......\socket.h
.........\src
.........\...\framework.cpp
.........\...\main.cpp
.........\...\MyGateway.cpp
.........\vc6
.........\...\网关框架.dsp
.........\...\网关框架.dsw
.........\...\网关框架.plg
readme.txt
server
......\ReadMe.txt
......\server.cpp
......\server.dsp
......\server.plg
......\socket.h
......\StdAfx.cpp
......\StdAfx.h
......\client.cpp
......\client.dsp
......\client.plg
......\ReadMe.txt
......\socket.h
......\StdAfx.cpp
......\StdAfx.h
framework
.........\include
.........\.......\exception.h
.........\.......\framework.h
.........\.......\global.h
.........\.......\mutex.h
.........\.......\MyGateway.h
.........\.......\queue.h
.........\.......\socket.h
.........\src
.........\...\framework.cpp
.........\...\main.cpp
.........\...\MyGateway.cpp
.........\vc6
.........\...\网关框架.dsp
.........\...\网关框架.dsw
.........\...\网关框架.plg
readme.txt
server
......\ReadMe.txt
......\server.cpp
......\server.dsp
......\server.plg
......\socket.h
......\StdAfx.cpp
......\StdAfx.h