示例#1
0
        public override AChannel ConnectChannel(IPEndPoint remoteEndPoint)
        {
            uint localConn = (uint)RandomHelper.RandomNumber(1000, int.MaxValue);

            this.channel = new KChannel(localConn, this.socket, remoteEndPoint, this);
            return(channel);
        }
示例#2
0
        public static void Output(byte[] bytes, int count, object user)
#endif
        {
            if (Instance == null)
            {
                return;
            }
            KChannel kChannel = Instance.GetKChannel();

            if (kChannel == null)
            {
                Debug.LogError($"not found kchannel, {(uint)user}");
                return;
            }

            kChannel.Output(bytes, count);
        }