Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

en/kcp-rs

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kcp-rs

A KCP implementation in Rust

KCP Powered Build Status

Testing

I use Rust nightly, stable version should work too.

$ make test

# results:
default mode result (27879ms):
avgrtt=3820 maxrtt=7887

normal mode result (20166ms):
avgrtt=144 maxrtt=363

fast mode result (20133ms):
avgrtt=138 maxrtt=339

To test KcpStream, you can run this in one terminal:

cargo run --example echo

and in another terminal you can run:

cargo run --example connect 127.0.0.1:8080

Each line you type in to the connect terminal should be echo'd back to you! If you open up multiple terminals running the connect example you should be able to see them all make progress simultaneously.

TODO

  • Migrate all tests from C version and fix bugs
  • Verify correctness
  • Improve the quality of code and make it more Rust-y

About

A KCP implementation in Rust

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.