From: Adriana Draghici Date: Sat, 26 Jun 2010 15:51:07 +0000 (+0300) Subject: autorun: updated PROTOCOL X-Git-Tag: getopt_long~15 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=2ab8fb6e981a226489d20c4d6576d1ee73491943;p=cs-p2p-next.git autorun: updated PROTOCOL --- diff --git a/autorun/PROTOCOL b/autorun/PROTOCOL index 54d3873..b0b367d 100644 --- a/autorun/PROTOCOL +++ b/autorun/PROTOCOL @@ -20,6 +20,8 @@ Comenzi Commander <-> Server: - STOP_CLIENT - ARCHIVE - CLEANUP + - GET_OUTPUT + - STATUS Serverul pastreaza un fisier cu info despre toate fisierele downloadate: - client type, torrent_metafile, type(log dir, status dir, log file, status file), path @@ -47,7 +49,7 @@ Serverul pastreaza un fisier cu info despre toate fisierele downloadate: - sterge fis care au fost arhivate - sterge din sessions lista fisierelor arhivate -2. Mesaje START +4. Mesaje START - trimis pt pornirea unui client -----> tuplu (tipul mesajului START_CLIENT, dictionar cu parametrii) exp: {CLIENT:"tribler", @@ -65,12 +67,12 @@ Serverul pastreaza un fisier cu info despre toate fisierele downloadate: <----- tuplu (ACK, pid_client) / (ERROR, error_msg) -3. Mesaje STOP +5. Mesaje STOP - trimis pt oprirea unui client -----> tuplu (STOP_CLIENT,id client) - <----- tuplu (ACK, "")/ (ERROR,"") + <----- tuplu (ACK, "")/ (ERROR, error_msg) -4. Mesaje STATUS +6. Mesaj: STATUS - trimise de client pt interogarea starii -----> (tipul mesajului STATUS_MSG, identificator transfer ) <----- tuplu (ACK, dictionar cu parametrii transferului ) @@ -84,6 +86,17 @@ Serverul pastreaza un fisier cu info despre toate fisierele downloadate: - eta - number of peers +7. Mesaj: CLEANUP + - trimis de client pentru stergerea fisierelor legate de transferuri + -----> (tipul mesajului CLEANUP_MSG, {ALL: True/False, + DOWN: True/False, + VLOGS: True/False, + SLOGS: True/False, + ARCHIVE: True/False} + <---- (ACK, "")/ (ERROR, error_msg) + - daca in dictionar avem ALL True, atunci se sterg toate fisierele, indiferent daca mai avem +true/false pt DOWN, VLOGS, etc + .....