From: Adriana Draghici Date: Fri, 29 Jan 2010 14:39:45 +0000 (+0200) Subject: bt_comm: updated Util.py X-Git-Tag: getopt_long~194 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=e47f854bff2619828d39911ee00ce6cd1cd7f231;p=cs-p2p-next.git bt_comm: updated Util.py --- diff --git a/bt_comm/Util.py b/bt_comm/Util.py index fa53b4e..ffd20a9 100644 --- a/bt_comm/Util.py +++ b/bt_comm/Util.py @@ -3,27 +3,16 @@ """ 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" - +ACK_MSG = "ACK" # send by server to the client after receiving a message if everything was ok +ERROR_MSG = "ERROR " # send by server to the client if the parameters were incorrect + # or the client could not be started etc #xml tags from swarm.xml +CLIENT = "client" BASE_DIR = "base" UP_LIMIT = "upload_limit" DL_LIMIT = "download_limit" @@ -31,3 +20,7 @@ DL_DIR = "download_dir" LOG_DIR = "logging_dir" PORT = "port" + +#clients +TRIBLER = tribler +TRANSMISSION = transmission