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); }
protected override void OnChannelConnected(VNetworkChannel channel) { channel.SetConnecter(this); }
protected virtual void OnChannelConnected(VNetworkChannel channel) { }