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); }
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); }