- earlyRetransmitSegments - 类 中的变量com.hjcenry.fec.fec.Snmp
-
accumulate early retransmitted segments
- encode(ByteBuf) - 类 中的方法com.hjcenry.fec.fec.FecEncode
-
使用方法:
1,入bytebuf后 把bytebuf发送出去,并释放bytebuf
2,判断返回值是否为null,如果不为null发送出去并释放它
headerOffset +6字节fectHead + 2字节bodylenth(lenth-headerOffset-6)
1,对数据写入头标记为数据类型 markData
2,写入消息长度
3,获得缓存数据中最大长度,其他的缓存进行扩容到同样长度
4,去掉头长度,进行fec编码
5,对冗余字节数组进行标记为fec makefec
6,返回完整长度
注意: 传入的bytebuf如果需要释放在传入后手动释放。
- encode(ByteBuf) - 类 中的方法com.hjcenry.fec.fecNative.FecEncode
-
使用方法:
1,入bytebuf后 把bytebuf发送出去,并释放bytebuf
2,判断返回值是否为null,如果不为null发送出去并释放它
headerOffset +6字节fectHead + 2字节bodylenth(lenth-headerOffset-6)
1,对数据写入头标记为数据类型 markData
2,写入消息长度
3,获得缓存数据中最大长度,其他的缓存进行扩容到同样长度
4,去掉头长度,进行fec编码
5,对冗余字节数组进行标记为fec makefec
6,返回完整长度
注意: 传入的bytebuf如果需要释放在传入后手动释放。
- encode(ByteBuf) - 接口 中的方法com.hjcenry.fec.IFecEncode
-
- encodeCache - 类 中的变量com.hjcenry.fec.fec.FecEncode
-
- encodeCache - 类 中的变量com.hjcenry.fec.fecNative.FecEncode
-
- encodeParity(byte[][], int, int) - 类 中的方法com.hjcenry.fec.ReedSolomon
-
Encodes parity for a set of data shards.
- encodeParity(ByteBuf[], int, int) - 类 中的方法com.hjcenry.fec.ReedSolomon
-
- equals(Object) - 类 中的方法com.hjcenry.fec.Matrix
-
Returns true iff this matrix is identical to the other.
- exp(byte, int) - 类 中的静态方法com.hjcenry.fec.Galois
-
Computes a**n.
- EXP_TABLE - 类 中的静态变量com.hjcenry.fec.Galois
-
Inverse of the logarithm table.
- fastRetransmitSegments - 类 中的变量com.hjcenry.fec.fec.Snmp
-
accumulate fast retransmitted segments
- Fec - com.hjcenry.fec.fec中的类
-
Created by JinMiao
2018/6/6.
- Fec() - 类 的构造器com.hjcenry.fec.fec.Fec
-
- FEC_PACKET_RECYCLER - 类 中的静态变量com.hjcenry.fec.fec.FecPacket
-
- FecAdapt - com.hjcenry.fec中的类
-
Created by JinMiao
2021/2/2.
- FecAdapt(int, int) - 类 的构造器com.hjcenry.fec.FecAdapt
-
- fecDataShards - 类 中的变量com.hjcenry.fec.fec.Snmp
-
收到的 Data数量
- fecDataSize - 类 中的静态变量com.hjcenry.fec.fec.Fec
-
- FecDecode - com.hjcenry.fec.fec中的类
-
4bit(headerOffset)+4bit(seqid)+2bit(flag)+2bit(body lenth不包含自己)+body
融进kcp要考虑fec导致的rtt计算不准的问题
参考 https://github.com/xtaci/kcp-go/issues/63
Created by JinMiao
2018/6/8.
- FecDecode(int, ReedSolomon, int) - 类 的构造器com.hjcenry.fec.fec.FecDecode
-
- fecDecode(int) - 类 中的方法com.hjcenry.fec.FecAdapt
-
- FecDecode - com.hjcenry.fec.fecNative中的类
-
4bit(headerOffset)+4bit(seqid)+2bit(flag)+2bit(body lenth不包含自己)+body
融进kcp要考虑fec导致的rtt计算不准的问题
参考 https://github.com/xtaci/kcp-go/issues/63
Created by JinMiao
2018/6/8.
- FecDecode(int, ReedSolomonNative, int) - 类 的构造器com.hjcenry.fec.fecNative.FecDecode
-
- FecEncode - com.hjcenry.fec.fec中的类
-
4bit(headerOffset)+4bit(seqid)+2bit(flag)+2bit(body lenth不包含自己)+body
Created by JinMiao
2018/6/6.
- FecEncode(int, ReedSolomon, int) - 类 的构造器com.hjcenry.fec.fec.FecEncode
-
- fecEncode(int, int) - 类 中的方法com.hjcenry.fec.FecAdapt
-
- FecEncode - com.hjcenry.fec.fecNative中的类
-
4bit(headerOffset)+4bit(seqid)+2bit(flag)+2bit(body lenth不包含自己)+body
Created by JinMiao
2018/6/6.
- FecEncode(int, ReedSolomonNative, int) - 类 的构造器com.hjcenry.fec.fecNative.FecEncode
-
- fecErrs - 类 中的变量com.hjcenry.fec.fec.Snmp
-
incorrect packets recovered from FEC
- FecException - com.hjcenry.fec.fec中的异常错误
-
Created by JinMiao
2018/6/8.
- FecException(String) - 异常错误 的构造器com.hjcenry.fec.fec.FecException
-
- fecHeaderSize - 类 中的静态变量com.hjcenry.fec.fec.Fec
-
- fecHeaderSizePlus2 - 类 中的静态变量com.hjcenry.fec.fec.Fec
-
- FecPacket - com.hjcenry.fec.fec中的类
-
Created by JinMiao
2018/6/26.
- FecPacket(Recycler.Handle<FecPacket>) - 类 的构造器com.hjcenry.fec.fec.FecPacket
-
- fecParityShards - 类 中的变量com.hjcenry.fec.fec.Snmp
-
收到的 Parity数量
- fecRecovered - 类 中的变量com.hjcenry.fec.fec.Snmp
-
correct packets recovered from FEC
- fecRepeatDataShards - 类 中的变量com.hjcenry.fec.fec.Snmp
-
number of data shards that's not enough for recovery
- fecShortShards - 类 中的变量com.hjcenry.fec.fec.Snmp
-
number of data shards that's not enough for recovery
- FIELD_SIZE - 类 中的静态变量com.hjcenry.fec.Galois
-
The number of elements in the field.
- flag - 类 中的变量com.hjcenry.fec.fec.FecPacket
-
- flagCache - 类 中的变量com.hjcenry.fec.fec.FecDecode
-
标记是否已经缓存了
- flagCache - 类 中的变量com.hjcenry.fec.fecNative.FecDecode
-
标记是否已经缓存了
- freeRange(int, int, MyArrayList<FecPacket>) - 类 中的静态方法com.hjcenry.fec.fec.FecDecode
-
1,回收first后n个bytebuf
2,将q的first到first+n之间的数据移除掉
3,将尾部的n个数据的data清空
4,返回开头到尾部n个数组的对象
- freeRange(int, int, MyArrayList<FecPacket>) - 类 中的静态方法com.hjcenry.fec.fecNative.FecDecode
-
1,回收first后n个bytebuf
2,将q的first到first+n之间的数据移除掉
3,将尾部的n个数据的data清空
4,返回开头到尾部n个数组的对象
- Galois - com.hjcenry.fec中的类
-
8-bit Galois Field
This class implements multiplication, division, addition,
subtraction, and exponentiation.
- Galois() - 类 的构造器com.hjcenry.fec.Galois
-
- gaussianElimination() - 类 中的方法com.hjcenry.fec.Matrix
-
Does the work of matrix inversion.
- generateExpTable(short[]) - 类 中的静态方法com.hjcenry.fec.Galois
-
Generates the inverse log table.
- generateLogTable(int) - 类 中的静态方法com.hjcenry.fec.Galois
-
Generates a logarithm table given a starting polynomial.
- generateMultiplicationTable() - 类 中的静态方法com.hjcenry.fec.Galois
-
Generates a multiplication table as an array of byte arrays.
- GENERATING_POLYNOMIAL - 类 中的静态变量com.hjcenry.fec.Galois
-
The polynomial used to generate the logarithm table.
- get(int, int) - 类 中的方法com.hjcenry.fec.Matrix
-
Returns the value at row r, column c.
- getActiveOpens() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getBytesReceived() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getBytesSent() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getColumns() - 类 中的方法com.hjcenry.fec.Matrix
-
Returns the number of columns in this matrix.
- getCurrEstablished() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getData() - 类 中的方法com.hjcenry.fec.fec.FecPacket
-
- getDataShardCount() - 类 中的方法com.hjcenry.fec.ReedSolomon
-
Returns the number of data shards.
- getDataShards() - 类 中的方法com.hjcenry.fec.fecNative.ReedSolomonNative
-
- getEarlyRetransmitSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFastRetransmitSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFecDataShards() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFecErrs() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFecParityShards() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFecRecovered() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFecRepeatDataShards() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFecShortShards() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getFlag() - 类 中的方法com.hjcenry.fec.fec.FecPacket
-
- getInBytes() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getInCheckSumErrors() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getInErrs() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getInPackets() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getInSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getKcpInErrors() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getLostSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getMaxConn() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getOutBytes() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getOutPackets() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getOutSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getParityShardCount() - 类 中的方法com.hjcenry.fec.ReedSolomon
-
Returns the number of parity shards.
- getParityShards() - 类 中的方法com.hjcenry.fec.fecNative.ReedSolomonNative
-
- getPassiveOpens() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getRate() - 类 中的方法com.hjcenry.fec.ReedSolomonBenchmark.Measurement
-
- getRepeatSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getRetransmitSegments() - 类 中的方法com.hjcenry.fec.fec.Snmp
-
- getRow(int) - 类 中的方法com.hjcenry.fec.Matrix
-
Returns one row of the matrix as a byte array.
- getRows() - 类 中的方法com.hjcenry.fec.Matrix
-
Returns the number of rows in this matrix.
- getSeqid() - 类 中的方法com.hjcenry.fec.fec.FecPacket
-
- getTotalShardCount() - 类 中的方法com.hjcenry.fec.fecNative.ReedSolomonNative
-
- getTotalShardCount() - 类 中的方法com.hjcenry.fec.ReedSolomon
-
Returns the total number of shards.