public KChannel GetKChannel(long id) { AChannel aChannel = GetChannel(id); if (aChannel == null) { return(null); } return((KChannel)aChannel); }
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); }
protected void OnAccept(AChannel channel) { acceptCallback.Invoke(channel); }