bt_comm: changed message format for starting client
authorAdriana Draghici <adriana008@gmail.com>
Fri, 29 Jan 2010 14:51:56 +0000 (16:51 +0200)
committerAdriana Draghici <adriana008@gmail.com>
Fri, 29 Jan 2010 14:52:21 +0000 (16:52 +0200)
bt_comm/PROTOCOL
bt_comm/Util.py
bt_comm/server/Util.py [deleted file]

index 29f3836..86d9e8c 100644 (file)
@@ -33,7 +33,8 @@ Comunicare Client <-> Server
        exp: {CLIENT:"tribler", BASE_DIR: "/home/p2p/p2p-clients/tribler/",
                UP_LIMIT: "512", DL_LIMIT:"256", PORT:"9999", 
                DL_DIR:"/this/dir", LOG_DIR:"/this/dir", 
-               OUT_FILE: "output_file", LOF_FILE:"log_file"}
+               OUT_FILE: "output_file", LOG_FILE:"log_file",
+               TORRENT: "torrent file"}
  - dupa fiecare msg 1,2 Serverul trimite un mesaj care indica daca a aparut sau nu vreo eroare 
 
 3. Mesaje STOP
index ffd20a9..d762ee3 100644 (file)
@@ -18,8 +18,10 @@ UP_LIMIT = "upload_limit"
 DL_LIMIT = "download_limit"
 DL_DIR = "download_dir"
 LOG_DIR = "logging_dir"
+OUT_FILE = "output_file"
+LOG_FILE = "log_file"
 PORT = "port"
-
+TORRENT = "torrent_file"
 
 #clients
 TRIBLER = tribler
diff --git a/bt_comm/server/Util.py b/bt_comm/server/Util.py
deleted file mode 100644 (file)
index c844044..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-
-#!/usr/bin/env python
-
-""" Message types: client -> server """
-
-CONFIG_MSG = "0";
-START_MSG = "1";
-STOP_MSG = "2";
-STATUS_MSG = "3";
-
-
-# xml tags from clients.xml
-CLIENT = "client"
-FILE = "file"
-RUN_TYPE = "run type"
-INTERPRETER = "interpreter"
-PREFIX = "prefix"
-SUFFIX = "suffix"
-UP_LIMIT_OPTION = "upload_limit_option"
-DL_LIMIT_OPTION = "download_limit_option"
-PORT_OPTION = "port_option"
-LOG_DIR_OPTION = "logging_dir_option"
-DL_DIR_OPTION = "download_dir_option"