Awesome
kcp-node
Features / Main Dependencies
- Performance -> More native Modules (the frequency of gc is the critial factor for node)
Environment
node 6+
Install
Usage
Protocol
KCP
+------+-----+-----+-----+----+----+-----+-----+
| CONV | CMD | FRG | WND | TS | SN | UNA | LEN |
+------+-----+-----+-----+----+----+-----+-----+
| 4 | 1 | 1 | 2 | 4 | 4 | 4 | 4 |
+------+-----+-----+-----+----+----+-----+-----+
KCP-GO Session Specification
+-----------------+---------------+---------------+-----+
| NONCE(optional) | CRC(optional) | FEC(optional) | KCP |
+-----------------+---------------+---------------+-----+
| 16 | 4 | 8 | |
+-----------------+---------------+---------------+-----+
Performance and Benchmark
sudo sysctl net.inet.udp.recvspace=4194304
About Multiplexing
- Data that comes later have to wait previous data to be transmited.
- New data don't have to probe appropriate window size again.
Unsigned Timestamp Manipulation
getCurrent
Relatives
LICENSE
MIT