Browse Source

Kommentierung

master
Florian Geiger 2 years ago
parent
commit
14c01ca38e
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      src/bin/client.rs

+ 4
- 3
src/bin/client.rs View File

@@ -6,13 +6,14 @@ use crypto_box::{
};

fn main() {
let port: u32 = 7878;
//let stream = TcpStream::connect("172.30.16.1:8080");
//let stream = TcpStream::connect("27.0.0.1:8080");
let port: u32 = 7878; // Port Server
//let stream = TcpStream::connect("172.30.16.1:8080");
//let stream = TcpStream::connect("27.0.0.1:8080");
match TcpStream::connect(format!("localhost:{}", port)) {
Ok(mut stream) => {
println!("Successfully connected to server");

// Nachrichten senden
loop {
let mut buffer = String::new();
match std::io::stdin().read_line(&mut buffer) {

Loading…
Cancel
Save