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; } }
public void Set(SAcServerToConnect Obj_) { ClientBindNamePortPub.Set(Obj_.ClientBindNamePortPub); }
public SAcServerToConnect(SAcServerToConnect Obj_) { ClientBindNamePortPub = Obj_.ClientBindNamePortPub; }