a-pavlov / jed2k

Java library for ed2k networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conn.java : search-command does not work

JamesOlvertone opened this issue · comments

search2 : works
search [dataSize n] : finds always no results

Fix:
Conn.java:
Line number around 290:
s.search(SearchRequest.makeRequest(0, maxSize, 30, 0, "", "", "", 0, 0, searchExpression));

The variant with command search2 has the parameter always set to 0 and this works here too.
Set 30 to 0 and you will get results from the server.

Hi, Conn is test application - you can change it as you like.