placing a search query

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
gluiperd
Posts: 3
Joined: 2003-02-22 05:24

placing a search query

Post by gluiperd » 2003-02-22 05:33

Hi,
I am writing my own dc-client in delphi but i seem to have a problem doing searches. I get fewer hits than NM direct connect on the same hub.
I send my searches after i have done this :
$key
$validateNick
$version
$getNickList
$MyInfo $ALL ....

after this i seem to be logged in just fine. but when i do a
$Search ' + localip + ':' + localport +' F?F?0?1?' + SearchEdit.Text + '|');
i dont get half as much hits as NMDC.
I use a threaded blocking-udp socket to listen for search replies.
Any ideas how to improve my search?
Greetings,
Gluiperd

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-02-22 05:44

did you possibly forget to change all non-alnum characters into $ in your SearchEdit.Text
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

gluiperd
Posts: 3
Joined: 2003-02-22 05:24

Post by gluiperd » 2003-02-22 06:36

this is only needen when there is a space character in your query right?
when i search for "dev-ccg1.bin" for exampe i wouldn't make a difference right?

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-02-22 07:04

well.. I have never seen searches with non-alnum in it,
so I think it might make a difference
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

gluiperd
Posts: 3
Joined: 2003-02-22 05:24

Post by gluiperd » 2003-02-22 07:30

using a packet sniffer i ensured that the search packet was exactly the same as send by NMDC. moreover when i send the same query once more i get more new results..

Dj_Offset
Posts: 48
Joined: 2003-02-22 19:22
Location: Oslo, Norway
Contact:

Post by Dj_Offset » 2003-02-22 20:29

Is your UDP listener "losing" packets? - Verify with a packet sniffer...
I wrote QuickDC - A DC++ compatible client for Linux and FreeBSD.

Locked