程序说明: 1.程序采用网上介绍的方法实现最基本的P2P方式通讯.模拟实现即时消息互发. 2.P2P通讯说明: 1).网关类型是在理想状态下.即非对称型NAT....
代码说明:
程序说明: 1.程序采用网上介绍的方法实现最基本的P2P方式通讯.模拟实现即时消息互发. 2.P2P通讯说明: 1).网关类型是在理想状态下.即非对称型NAT. 2).同在一个内网的两个CLIENT端通讯时,如果网关NAT不支持环回,将会失败. 文件目录说明: tQServer:程序服务端,请将其放在公网上运行. tQClient:程序客户端,可以在不同的内网中运行登录连接到服务端. Common:公共协议文件夹 本程序只是实现简单的P2P互发消息.完成的比较粗糙,更多功能欢迎朋友们更新完善-procedures : 1. Online procedures introduced by the most basic method of peer-to-peer communication. Simulation made instant messaging each other. 2.P2P communications Note : 1). Gateway is the ideal type of state. That is non-symmetric NAT. 2). In the same period net CLIENT-2 communications, if not support NAT Gateway Circular, will fail. directory : tQServer :-service procedures, I would be grateful if the public on its Internet. tQClient : clients, in different operations within the network login to connect to the server. Common : Public the agreement folder procedure is a simple peer-to-peer updates. completion of the rougher, more functional friends welcome update perfect
下载说明:请别用迅雷下载,失败请重下,重下不扣分!