]> git.lizzy.rs Git - connect-rs.git/blob - examples/tcp-echo-server/README.md
rename stitch-net to connect
[connect-rs.git] / examples / tcp-echo-server / README.md
1 # seam-channel tcp-echo-server example
2
3 This example program will:
4
5 1. Bind to an IP address
6 2. Accept any number of TCP connections
7 3. Handle each connection by:
8     1. Waiting for `String` messages to be received
9     2. Echoing the `String` message back to the source
10
11 ## Usage
12
13 ```
14 export RUST_LOG=info
15 cargo run <ip-address-to-bind-to>
16 ```
17
18 ## Example Usage
19
20 ```
21 export RUST_LOG=info
22 cargo run localhost:5678
23 ```