public override void output(ByteBuf msg, Kcp kcp, Object user) { this.client.Send(msg.GetRaw(), msg.ReadableBytes()); }
protected DateTime lastTime; //上次检测时间 public KcpOnUdp(int port) { client = new UdpClient(port); kcp = new Kcp(121106, this, null); this.received = new LinkedList <byte[]>(); }
abstract public void output(ByteBuf msg, Kcp kcp, Object user);
abstract public void output(ByteBuf msg, Kcp kcp);