MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Direct Connect support
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    MLDonkey Forum Index -> Problems with MLDonkey Client (Bittorrent, DirectConnect, Gnutella,...)
View previous topic :: View next topic  
Author Message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Mon Aug 06, 2007 7:18 pm    Post subject: Reply with quote

ciberkids wrote:
for suggestion not try this configuration:
Code:
./configure --enable-directconnet --enable-gd

To confuse you even more:
- unpack source code into a clean dir
- ./configure --enable-directconnet --enable-gd
- make

and test the resulting binary. Can it load the bz2 hublist?
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
ciberkids
neophyte


Joined: 02 Aug 2007
Posts: 4

PostPosted: Fri Aug 17, 2007 4:46 pm    Post subject: Reply with quote

yes !! now it can read the hub list Very HappyVery HappyVery Happy

but now there are some other problem.... i can't download any filelist from users and when a make a search it doesn't found anything...

and the log file sometime tell me: error in parsing myinfo

can you help me??

ps. sorry for the late but i came back only yersterda from the holiday Very Happy
Back to top
View user's profile Send private message
ais77
neophyte


Joined: 29 Aug 2007
Posts: 36
Location: Moscow, Russia

PostPosted: Mon Sep 03, 2007 1:53 pm    Post subject: The same problem.. Reply with quote

In log there is multiple record (every 3-20 seconds):

Error in MyInfo parsing...

Is it related to DC?
This "feature" garbages mlnet.log very quickly.. Crying or Very sad
Is there any workaround on that Question
Back to top
View user's profile Send private message
EagleSW
neophyte


Joined: 22 Oct 2007
Posts: 2

PostPosted: Mon Oct 22, 2007 8:27 am    Post subject: Reply with quote

I'm adding folder to share from GUI (sancho).
After hashing is done, my share files doesn't available(share size = 0).
Also, I can't see this share in GUI.
My FileList file contains correctly data (list of all files and its sizes).
I can't connect with hub, which have restrict access by share size.
What's wrong?
Back to top
View user's profile Send private message
yaron
neophyte


Joined: 01 Nov 2007
Posts: 2

PostPosted: Mon Nov 05, 2007 7:12 pm    Post subject: Reply with quote

Sorry, but could u plz explain how to connect to a DC hub? Where do I see the list of hubs?
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Mon Nov 05, 2007 7:36 pm    Post subject: Reply with quote

yaron wrote:
Sorry, but could u plz explain how to connect to a DC hub? Where do I see the list of hubs?

http://mldonkey.sourceforge.net/DirectConnect
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
yaron
neophyte


Joined: 01 Nov 2007
Posts: 2

PostPosted: Mon Nov 05, 2007 8:05 pm    Post subject: Reply with quote

spiralvoice,

I've already read this chat log, and I still don't understand.
Back to top
View user's profile Send private message
tomski
neophyte


Joined: 14 Apr 2007
Posts: 4

PostPosted: Thu Nov 15, 2007 6:52 pm    Post subject: cant get search results Reply with quote

Hi there people,

i have managed to get mld to connect to DC and i got a few hublists loaded also the plugin can connect to a hub, problem is that when i try to search for files on DC i dont get any results???
also when i request a file list this also gives nothing.

any idea's about this

im running custom compile of 2.9.1 on ubuntu
_________________
If everything in life was easy,
What would we learn!!
Back to top
View user's profile Send private message
LuCasn
neophyte


Joined: 18 Dec 2007
Posts: 5

PostPosted: Tue Dec 18, 2007 6:56 pm    Post subject: Reply with quote

EagleSW wrote:
I'm adding folder to share from GUI (sancho).
After hashing is done, my share files doesn't available(share size = 0).
Also, I can't see this share in GUI.
My FileList file contains correctly data (list of all files and its sizes).
I can't connect with hub, which have restrict access by share size.
What's wrong?


I had the same issue in my environment, which is a local LAN with nothing than a DC++ server, so i compiled mlDonkey with direct_connect-support only.
Upon connecting the server always moaned about my share size being too low (0 Bytes), although i had about 15 GB shared (the shared files did show up in the "dcshared"-list).
So i downloaded the source to see what was wrong (i have never seen ocaml code before) and wrote a quick fix to the problem i encountered: in my opinion the sharesize to which the "create_myinfo" function in "dcServers.ml" refers, is wrong. This is due to the fact of dc shares not appearing in mldonkeys global share list (they get written to "shared_files_dc.ini"), so i created a function to compute the share size exclusive to dc.
This is what i wrote:

This goes in "dcShared.ml" (new function):
Code:

let dc_updatesharesize () =
   dc_sharesize := Int64.zero;
   Hashtbl.iter (fun _ dcsh -> dc_sharesize := dc_sharesize ++ dcsh.dc_shared_size) dc_shared_files_by_codedname;
   !dc_sharesize;

This iterates through the list of shared files (dc_shared_files_by_codedname) and adds each filesize to the global variable dc_sharesize for later (cached) use and returns the final value of dc_sharesize for immediate use.


This goes in "dcGlobals.ml" (new global variable)
Code:

let dc_sharesize = ref Int64.zero


Last but not least, the modified "create_myinfo" function in "dcServers.ml":
Code:

(* MyInfo record sending *)
let create_myinfo s = (* every server is sent its own info (nick) (uptime) *)
  (* <V>
     V(ersion) x = client version
     M(ode) x = mode (A = Active, P = Passive, 5 = SOCKS5)
     H(ubs) x = number of hubs connected to where you're not a registered user
            y = number of hubs you're registered in
            z = number of hubs you're registered as an operator
     S(lots) x = number of upload slots you have open (note that they may be in use already)
     O(pen an extra slot if speed is below)
             x = if total upload is below this value DC++ will open another slot
                 This part of the tag is only shown when the option for it is enabled.

     <flag> User status as ascii char (byte)
        1 normal - 2,3 away - 4,5 server - 6,7 server away - 8,9 fireball - 10,11 fireball away
        * The server icon is used when the client has uptime > 2 hours, > 2 GB shared, upload > 200 MB.
        * The fireball icon is used when the client has had an upload > 100 kB/s. *)
   let version = Autoconf.current_version in
   let uptime = current_time () -. s.server_connection_time in
   let mode = ref ( if (!!firewalled = true) then 'P' else 'A') in
   let own_brand = "MLDC" in
   let norm_hubs,reg_hubs,opped_hubs = get_myhubs_info () in
   let time_flag = 
     if (uptime > 7200.) &&
        (!nshared_bytes > (Int64.mul (Int64.of_int 2) int64_gbyte)) &&
        (!dc_total_uploaded > (Int64.mul (Int64.of_int 200) int64_mbyte)) then 5
     else 1
   in
   {
     dest = "$ALL";
     nick = s.server_last_nick;
     client_brand = own_brand;
     version = version;
     mode = !mode;
     hubs = norm_hubs, reg_hubs, opped_hubs ;
     slots = open_slots ();
     open_upload_slot = 0; (*TODO Automatically open an extra slot if speed is below kB/s*)
     description =
       Printf.sprintf "<s>" own_brand version !mode
         norm_hubs reg_hubs opped_hubs (open_slots ());
     conn_speed = !!client_speed;
     flag = time_flag;
     email = "";
     sharesize = dc_updatesharesize ();
     bwlimit = !!max_hard_upload_rate;
   }

the changed line being sharesize = dc_updatesharesize ();
(you also have to add this to the top of "dcServers.ml":
Code:

open DcShared


Hope this helps some of you and maybe it's integrated as a patch into the direct_connect module.

Regards,
Lucas

EDIT: forgot one "!" at the end of the size calculating function. (wrote "dc_sharesize;" instead of "!dc_sharesize;"). Sorry for that!
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Tue Dec 18, 2007 9:49 pm    Post subject: Reply with quote

Please try this revised patch:
https://savannah.nongnu.org/patch/index.php?6349

For your function its not necessary to define a global variable,
in DcServers.create_myinfo you can just use the value returned
by DcShared.dc_updatesharesize ().
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
LuCasn
neophyte


Joined: 18 Dec 2007
Posts: 5

PostPosted: Tue Dec 18, 2007 10:38 pm    Post subject: Reply with quote

I know that the global variable is not neccessary, but I thought it would be nice to have a cached value of the sharesize one connected with for possible later use:
Quote:
This iterates through the list of shared files (dc_shared_files_by_codedname) and adds each filesize to the global variable dc_sharesize for later (cached) use and returns the final value of dc_sharesize for immediate use.

I will try the patch you created tomorrow. Thanks for looking into it!
Back to top
View user's profile Send private message
spiralvoice
Sage


Joined: 06 Jan 2003
Posts: 3982
Location: Germany

PostPosted: Thu Dec 27, 2007 1:55 pm    Post subject: Reply with quote

LuCasn wrote:
I will try the patch you created tomorrow. Thanks for looking into it!

ping Wink
_________________
Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks
Back to top
View user's profile Send private message
Paranoik
user


Joined: 10 Apr 2009
Posts: 154

PostPosted: Tue Feb 16, 2010 7:09 pm    Post subject: Reply with quote

Smile last update is sweety
Back to top
View user's profile Send private message
PeeGee
neophyte


Joined: 17 Feb 2010
Posts: 5

PostPosted: Thu Feb 18, 2010 10:24 pm    Post subject: Problem getting password to work in directconnect.ini! Reply with quote

Hi all,

I'm having problems getting the passwordfunction to work for DC. My MLDonkey is installed on my QNAP NAS and I have edited the directconnect.ini as described in the file:

(* Define here a list of address/passwords/nick triples for hubs in form
[ ("hubserver.ip.com", "nick1", "pass1");
("somehub.somewhere.org", "nick2", "pass2");
("11.22.333.444", "nick3", "pass3");
] *)
hubs_passwords = [ ("myhub.com", "myuser", "mypassword"); ]

Is this the correct syntax?

As soon as I try to connect to the server it complains about the password, and if I then check the directconnect.ini again, its back to default again:

(* Define here a list of address/passwords/nick triples for hubs in form
[ ("hubserver.ip.com", "nick1", "pass1");
("somehub.somewhere.org", "nick2", "pass2");
("11.22.333.444", "nick3", "pass3");
] *)
hubs_passwords = []

Why is that? Anyone with the same problems?

Thanks guys!

/ PG
Back to top
View user's profile Send private message
Paranoik
user


Joined: 10 Apr 2009
Posts: 154

PostPosted: Fri Feb 19, 2010 4:49 pm    Post subject: Reply with quote

Hi, i never used DC, but with downloads.ini files it happens sometimes too. To avoid this i do stop core. then edit files, and then start core again. Can you try the same?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MLDonkey Forum Index -> Problems with MLDonkey Client (Bittorrent, DirectConnect, Gnutella,...) All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 2 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo