|0.1.2||Jul 5, 2020|
|0.1.1||Jul 5, 2020|
|0.1.0||Jul 5, 2020|
This crate contains the mechanics for building a simple TCP chat with support for multiple connections at once. Messages with length of up to 1048576 octets are supported, as well as much larger file transfers. Integrity checking is embedded into talkers. Included is a sample high-latency chat application (the talkers chat program) that supports proxying over SOCKS5 (e.g. to use Tor onion services).
See the documentation for more details.
Using the app
cargo run --release.
You can run
cargo run --release -- --help to see which arguments are supported. For example,
cargo run --release -- -x 9150 would listen on 0.0.0.0:50505 for incoming connections (the default), but use the SOCKS5 proxy on port 9150 to connect to peers.
How to use in your own project
To get started, it's easiest to take a look at the "record" example as well as the app itself. The app is a minimalist yet full-fledged CLI chat application that can connect using a SOCKS5 proxy. The "record" example waits for a connection and then records all messages received within a few seconds in a Vec.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.