Skip to content

Commit

Permalink
Update test app
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteOtter committed Jul 31, 2024
1 parent 36ce90e commit 2549eba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vnc-test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// println!("Getting port...");
// let addr = vnc_server.srv.as_ref().unwrap().local_addr()?;
let addr = "";
let client = match create_vnc_client(addr.to_string(), None).await {
let psw = "password".to_string();
let client = match create_vnc_client(addr.to_string(), Some(psw)).await {
Ok(client) => {
println!("Client created. Handshake successful.");
client
Expand All @@ -88,7 +89,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
};

match write_to_console(&client, include_str!("lore.txt").to_string(), None).await {
match write_to_console(&client, include_str!("test.txt").to_string(), None).await {
Ok(_) => {
println!("Test text sent!");
}
Expand Down

0 comments on commit 2549eba

Please sign in to comment.