且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从服务器中的客户端池中识别客户端-设计

更新时间:2023-11-30 12:54:52

我们在创建网络库 networkComms时解决了类似的问题.网.我们的解决方案是通过IPEndPoint( MSDN ),Guid( MSDN )和连接类型,例如TCP,UDP等.在高级连接握手期间交换Guid,以便两端都知道对方.

We solved a similar problem when creating the network library networkComms.net. Our solution was to keep track of peers by IPEndPoint (MSDN), Guid (MSDN) and connection types, e.g. TCP, UDP etc. The Guid are exchanged during the high-level connection handshake so that both ends are aware of the other.