]> git.lizzy.rs Git - connect-rs.git/blob - examples/tls-client/README.md
renamed server to listener and add thorough documentation
[connect-rs.git] / examples / tls-client / README.md
1 # connect tls-client example
2
3 This example program will:
4
5 1. Establish a secure connection with a TLS 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> <domain-name> <ca-file>
14 ```
15
16 ## Example Usage
17
18 ```
19 export RUST_LOG=info
20 cargo run 127.0.0.1:5678 localhost end.chain
21 ```