diff --git a/src/main.rs b/src/main.rs index 402d246..64c7710 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,10 +3,9 @@ fn main() { use std::time::Duration; let mut client = Client::new( - // PeerAddress::new(String::from("server.slsknet.org"), 2242), - PeerAddress::new(String::from("127.0.0.1"), 2242), - String::from("insane_in_the_brain3"), - String::from("13375137"), + PeerAddress::new(String::from("server.slsknet.org"), 2242), + String::from("xxxxxx"), + String::from("xxxxxx"), true, None, ); diff --git a/test.md b/test.md deleted file mode 100644 index f7c3031..0000000 --- a/test.md +++ /dev/null @@ -1,11 +0,0 @@ -[2025-10-01 13:30:27] [Conn] Sending message of type to user insane_in_the_brain2 on new connection -[2025-10-01 13:30:27] [Msg] OUT: {'user': 'insane_in_the_brain2', 'ip_address': None, 'port': None, 'obfuscation_type': None, 'obfuscated_port': None} -[2025-10-01 13:30:27] [Conn] Requesting address for user insane_in_the_brain2 -[2025-10-01 13:30:27] [Conn] Attempting direct connection of type P to user insane_in_the_brain2, address ('127.0.0.1', 53507) -[2025-10-01 13:30:27] [Msg] OUT: {'token': 567916, 'user': 'insane_in_the_brain2', 'conn_type': 'P', 'ip_address': None, 'port': None, 'privileged': None, 'obfuscation_type': None, 'obfuscated_port': None} -[2025-10-01 13:30:27] [Conn] Requesting indirect connection to user insane_in_the_brain2 with token 567916 -[2025-10-01 13:30:27] [Msg] IN: {'user': 'insane_in_the_brain2', 'ip_address': '127.0.0.1', 'port': 53507, 'obfuscation_type': 1, 'obfuscated_port': 53508} -[2025-10-01 13:30:27] [Conn] Established outgoing connection of type P with user insane_in_the_brain2. List of outgoing messages: [] -[2025-10-01 13:30:27] [Conn] Sending peer init message of type P to user insane_in_the_brain2 -[2025-10-01 13:30:27] [Msg] OUT: {'sock': , 'init_user': 'insane_in_the_brain6', 'target_user': 'insane_in_the_brain2', 'conn_type': 'P', 'outgoing_msgs': [], 'token': 0} -[2025-10-01 13:30:27] [Msg] OUT:

{'search_username': 'insane_in_the_brain6', 'token': 1, 'freeulslots': True, 'ulspeed': 0, 'inqueue': 0, 'unknown': 0} diff --git a/todo.md b/todo.md deleted file mode 100644 index eece091..0000000 --- a/todo.md +++ /dev/null @@ -1,8 +0,0 @@ -# default peer - -- lifetime: disconnect after it sends a few messages - -# peer download - -- make queue download queue with thread pool -- download progress