19 EN_Home
InnovativeInventor edited this page 2018-12-12 10:53:32 -05:00

Introduction

KCP is a fast and reliable ARQ protocol, which decreases the latency by roughly 30%-40% (66% best case), by using ARQ, which wastes about 10%-20% bandwidth. Because KCP only specifies a series of application-level algorithms, the user must provide the communications protocol (UDP, TCP, etc.). KCP also provides an API to set the callback to send packets, update the received bytes, and update the wall clock. There are no syscalls in KCP because it is just a library that can be used in any application.

There are only two source files, the ikcp.h and ikcp.c, which can be easily integrated into your protocol stack. For example, if your application works without ARQ (Automatic Repeat Query), such as a P2P system or RTMP/RTSP/HTTP server, KCP can help you take advantage of ARQ with only a few lines of code (maybe < 10).

Content