feat: client settings and defaults

This commit is contained in:
Michel de Graaf
2025-11-11 22:22:21 +01:00
parent 7bf2748e1f
commit 3d6cc9f7cd
4 changed files with 79 additions and 35 deletions
+2 -8
View File
@@ -1,15 +1,9 @@
use soulseek_rs::{Client, PeerAddress};
use soulseek_rs::Client;
use std::time::Duration;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create and connect to Soulseek server
let mut client = Client::new(
PeerAddress::new("server.slsknet.org".to_string(), 2242),
"username".to_string(),
"password".to_string(),
false,
None,
);
let mut client = Client::new("username", "password");
client.connect();
client.login()?;