コード例 #1
0
        public KChannel GetKChannel(long id)
        {
            AChannel aChannel = GetChannel(id);

            if (aChannel == null)
            {
                return(null);
            }

            return((KChannel)aChannel);
        }
コード例 #2
0
        public static void Output(IntPtr bytes, int count, IntPtr user)
        {
            if (Instance == null)
            {
                return;
            }
            AChannel aChannel = Instance.GetChannel((uint)user);

            if (aChannel == null)
            {
                Log.Error($"not found kchannel, {(uint)user}");
                return;
            }

            KChannel kChannel = aChannel as KChannel;

            kChannel.Output(bytes, count);
        }
コード例 #3
0
 protected void OnAccept(AChannel channel)
 {
     acceptCallback.Invoke(channel);
 }