示例#1
0
            void _RecvAcServerToConnect(CKey Key_, CStream Stream_)
            {
                var itServer = _Servers.Get((Int32)Key_.PeerNum);

                var Proto = new SAcServerToConnect();

                Stream_.Pop(Proto);

                itServer.Data.State = _EState.WillConnectServer;
                _Net.Close(Key_.PeerNum);

                itServer.Data.State         = _EState.Null;
                itServer.Data.NamePort.Data = new CNamePort(Proto.ClientBindNamePortPub);
                if (_Net.Connect(new CNamePort(Proto.ClientBindNamePortPub), Key_.PeerNum) == null)
                {
                    _Servers.Remove(itServer);
                    _LinkFailFunc(Key_.PeerNum, ENetRet.SystemError);
                    return;
                }
            }
示例#2
0
 public void Set(SAcServerToConnect Obj_)
 {
     ClientBindNamePortPub.Set(Obj_.ClientBindNamePortPub);
 }
示例#3
0
 public SAcServerToConnect(SAcServerToConnect Obj_)
 {
     ClientBindNamePortPub = Obj_.ClientBindNamePortPub;
 }