[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mldonkey-users] Gui protocol questions
From: |
b8_bavard |
Subject: |
Re: [Mldonkey-users] Gui protocol questions |
Date: |
Fri, 9 May 2003 09:29:48 +0200 |
> I'm working on platero mldonkey gui. I hope this is the correct list,
> because
> I can't find mldonkey-devel list.
There is one, but it may only be accessible for the project members.
> Sorry for the silly question, but I'm not sure of the meaning of message
> "CleanTables" in the gui protocol. It sends two lists of clients and servers
> to the gui, but what to do with this elements ? I don't know if I must
> remove
> this elements, or they are the good elements and I must remove the others,
> or
> none of them.
CleanTables takes the list of servers and clients currently alive (ie
if a server or client is not in the list, you can remove the
corresponding record).
> And another question : I want to obtain the list of shared files of a
> Friend.
> I send "GetClientFiles" and receive a few "ClientFile clientnum filenum".
> How
> can I get the information from this files, starting from their number ? What
> messages should I expect ?
You must send a GetFile_info with the filenum, and a GetClient_info
for the client. You can have a look at
src/daemon/driver/driverInterfaces.ml, to see how the core replies to
the messages sent by the GUI, and what it sends to the GUI.
Sometimes, I wonder if it would be interesting to do a lecture on
Ocaml: "ocaml survival tutorial for mldonkey"...
- b8_bavard (mldonkey)
--------------------------------------
Homepage: http://www.mldonkey.net/
--------------------------------------