--- /dev/null
+
+#!/usr/bin/env python
+
+""" Message types: client -> server """
+
+START_MSG = "1";
+STOP_MSG = "2";
+STATUS_MSG = "3";
+
+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"
+DL_DIR = "download_dir"
+LOG_DIR = "logging_dir"
+OUT_FILE = "output_file"
+PORT = "port"
+
+
+#clients
+TRIBLER = tribler
+TRANSMISSION = transmission
- msg 2: dictionar cu parametrii
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"}
+ DL_DIR:"/this/dir", LOG_DIR:"/this/dir", OUT_FILE: "output_file"}
- dupa fiecare msg 1,2 Serverul trimite un mesaj care indica daca a aparut sau nu vreo eroare
3. Mesaje STOP