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