]> git.lizzy.rs Git - connect-rs.git/blob - examples/tcp-client/README.md
renamed server to listener and add thorough documentation
[connect-rs.git] / examples / tcp-client / README.md
1 # connect tcp-client example
2
3 This example program will:
4
5 1. Establish a connection with a TCP server
6 2. Send a `String` message to the server
7 3. Wait for a `String` message reply from the server
8
9 ## Usage
10
11 ```
12 export RUST_LOG=info
13 cargo run <ip-address-to-connect-to>
14 ```
15
16 ## Example Usage
17
18 ```
19 export RUST_LOG=info
20 cargo run localhost:5678
21 ```