Exemplo n.º 1
0
        public virtual void OnReliableConnected(IVNetPeer peer)
        {
            var channel = new VNetworkChannel(peer, LittleEndian);

            channel.OnReliableConnected();
            if (Connections.ContainsKey(peer.ConnectId))
            {
                Logger.ErrorFormat("Connid {0} does not exist in connections ", peer.ConnectId);
                return;
            }
            Connections[peer.ConnectId] = channel;
            _lastConnection             = channel;
            AddChannel(channel);
            if (null != ChannelConnected)
            {
                ChannelConnected(channel);
            }
            OnChannelConnected(channel);
        }
Exemplo n.º 2
0
 protected override void OnChannelConnected(VNetworkChannel channel)
 {
     channel.SetConnecter(this);
 }
Exemplo n.º 3
0
 protected virtual void OnChannelConnected(VNetworkChannel channel)
 {
 }