예제 #1
0
 public override void output(ByteBuf msg, Kcp kcp, Object user)
 {
     this.client.Send(msg.GetRaw(), msg.ReadableBytes());
 }
예제 #2
0
 protected DateTime lastTime; //上次检测时间
 public KcpOnUdp(int port)
 {
     client        = new UdpClient(port);
     kcp           = new Kcp(121106, this, null);
     this.received = new LinkedList <byte[]>();
 }
예제 #3
0
 abstract public void output(ByteBuf msg, Kcp kcp, Object user);
예제 #4
0
파일: Output.cs 프로젝트: WeeirJoe/Joe
 abstract public void output(ByteBuf msg, Kcp kcp);