autorun: added usage details in README.
authorAdriana Draghici <adriana.draghici@cti.pub.ro>
Sun, 11 Apr 2010 09:47:14 +0000 (12:47 +0300)
committerAdriana Draghici <adriana.draghici@cti.pub.ro>
Sun, 11 Apr 2010 09:47:14 +0000 (12:47 +0300)
autorun/README

index 9aacb80..5ae9548 100644 (file)
@@ -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.
+
+