Skip to content

Commit 923aaaf

Browse files
committed
get rmt_wnd
1 parent dae54db commit 923aaaf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kcp"
3-
version = "0.4.15"
3+
version = "0.4.16"
44
authors = ["Matrix <[email protected]>", "Y. T. Chung <[email protected]>"]
55
description = "Reliable-UDP Library for Rust"
66
license = "MIT"

src/kcp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,11 @@ impl<Output: Write> Kcp<Output> {
11231123
self.snd_buf.len() + self.snd_queue.len()
11241124
}
11251125

1126+
/// Get `rmt_wnd`, remote window size
1127+
pub fn rmt_wnd(&self) -> u16 {
1128+
self.rmt_wnd
1129+
}
1130+
11261131
/// Set `rx_minrto`
11271132
pub fn set_rx_minrto(&mut self, rto: u32) {
11281133
self.rx_minrto = rto;

0 commit comments

Comments
 (0)