| Crates.io | kcp-bindings |
| lib.rs | kcp-bindings |
| version | 1.1.0 |
| created_at | 2025-11-09 08:55:11.181269+00 |
| updated_at | 2025-12-10 12:47:40.313712+00 |
| description | Bindings for the KCP library |
| homepage | |
| repository | https://github.com/hexfellow/kcp-bindings |
| max_upload_size | |
| id | 1923826 |
| size | 109,813 |
This repository is just a wrapper around the KCP library to make it easier to use in other rust projects.
All credits go to the original authors of the KCP library: https://github.com/skywind3000/kcp
When the hexfellow feature is enabled, this library will use the tokio crate to handle the UDP socket.
Made of header and data.
Header in little endian, 4 Bytes
Byte[0]:
Byte[1]: Reserved. Always 0b0000_0000.
Byte[2] and Byte[3]: Length of the data in u16.
anyhow dependency and use custom error types.