public void SendOpenConnectionRequest1() { var packet = new OpenConnectionRequest1() { raknetProtocolVersion = 7, // Indicate to the server that this is a performance tests. Disables logging. mtuSize = _mtuSize }; byte[] data = packet.Encode(); TraceSend(packet); // 1087 1447 byte[] data2 = new byte[_mtuSize - data.Length]; Buffer.BlockCopy(data, 0, data2, 0, data.Length); SendData(data2); }
public void SendOpenConnectionRequest1() { var packet = new OpenConnectionRequest1() { raknetProtocolVersion = byte.MaxValue, // Indicate to the server that this is a performance tests. Disables logging. mtuSize = _mtuSize }; var data = packet.Encode(); SendData(data); }