mirror of
https://github.com/skywind3000/kcp.git
synced 2025-04-28 16:10:14 +08:00
Updated EN_KCP Basic Usage (markdown)
parent
8f7768e9c6
commit
4feba8162e
@ -60,12 +60,12 @@ user can setup the bellow options for high efficient transport:
|
||||
int ikcp_nodelay(ikcpcb *kcp, int nodelay, int interval, int resend, int nc)
|
||||
```
|
||||
|
||||
> nodelay: Whether enable `nodelay` mode. 0: Off; 1: On.
|
||||
> interval: The internal interval in milliseconds, such as 10ms or 30ms.
|
||||
> resend: Whether enable fast retransmit mode. 0: Off; 2: Retransmit when missed in 2 ACK.
|
||||
> nc: Whether disable the flow control. 0: Enable. 1: Disable.
|
||||
> For normal mode, like TCP: `ikcp_nodelay(kcp, 0, 40, 0, 0);`
|
||||
> For high efficient transport: `ikcp_nodelay(kcp, 1, 10, 2, 1);`
|
||||
* nodelay: Whether enable `nodelay` mode. 0: Off; 1: On.
|
||||
* interval: The internal interval in milliseconds, such as 10ms or 30ms.
|
||||
* resend: Whether enable fast retransmit mode. 0: Off; 2: Retransmit when missed in 2 ACK.
|
||||
* nc: Whether disable the flow control. 0: Enable. 1: Disable.
|
||||
* For normal mode, like TCP: `ikcp_nodelay(kcp, 0, 40, 0, 0);`
|
||||
* For high efficient transport: `ikcp_nodelay(kcp, 1, 10, 2, 1);`
|
||||
|
||||
2. 最大窗口:
|
||||
```cpp
|
||||
|
Loading…
Reference in New Issue
Block a user