Skip to content

Commit 59e343b

Browse files
committed
make KCP_OVERHEAD public
1 parent 85e345f commit 59e343b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kcp"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
authors = ["Matrix <[email protected]>", "Y. T. Chung <[email protected]>"]
55
description = "Reliable-UDP Library for Rust"
66
license = "MIT"
@@ -21,4 +21,4 @@ thiserror = "1.0.36"
2121
[dev-dependencies]
2222
time = "0.3"
2323
rand = "0.8"
24-
env_logger = "0.9"
24+
env_logger = "0.10"

src/kcp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const KCP_MTU_DEF: usize = 1400;
3131
// const KCP_ACK_FAST: u32 = 3;
3232

3333
const KCP_INTERVAL: u32 = 100;
34-
const KCP_OVERHEAD: usize = 24;
34+
/// KCP Header size
35+
pub const KCP_OVERHEAD: usize = 24;
3536
const KCP_DEADLINK: u32 = 20;
3637

3738
const KCP_THRESH_INIT: u16 = 2;

0 commit comments

Comments
 (0)