From 647e7dde0659266afa8eceb32c9d7c115dc8a711 Mon Sep 17 00:00:00 2001 From: Adriana Draghici Date: Sun, 11 Apr 2010 12:47:14 +0300 Subject: [PATCH] autorun: added usage details in README. --- autorun/README | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/autorun/README b/autorun/README index 9aacb80..5ae9548 100644 --- a/autorun/README +++ b/autorun/README @@ -3,7 +3,9 @@ Automated command interface for BitTorrent clients. It Supports starting remotel a daemon server, that will receive start/stop commands for the clients from that remote host. -File breakdown: +********************************* +* File breakdown * +********************************* server/ - Server.py - server that runs as a daemon @@ -31,4 +33,24 @@ Util.py - constants used by server and commander. PROTOCOL - communication description between Server and Commander +********************************* +* Usage * +********************************* + - test Commander<->Server + 1. in xml/nodes.xml add node ip and server listening port + 2. in xml/swarm.xml add torrent file + 3. on remote node, check SERVER_HOST and SERVER_PORT in Util.py. + The Server listens on its vm interface address. + 4. start commander using commander/run.sh + + - test locally without remotely starting Server: + - in server/ : + 1. python Server.py - output in /home/p2p/out and /home/p2p/err + or + python Server_NO_DAEMON for console output + 2. python Client.py torrent_path + - has test scenerios for tribler, transmission and hrktorrent. + - modify test_all_commands method in order to choose the BT client. + + -- 2.20.1