看板 java 關於我們 聯絡資訊
※ 引述《littlefae (子丁丁丁)》之銘言: : 在phex的code當中 : 請問該用哪個code去收集client的ip & port : 且 : 我想要對每個client發出資料收集的search : 應該用哪個code去作發出 : search的功能 : 且code當中之頗多參數都不太了解 : 請問有了解的人可以跟我聯絡嗎? source code is king. phex.query.QueryManager phex.host.HOST http://www.phex.org/javadoc/phex/ (UML class diagram) http://www.gnutellaforums.com/general-discussion/98767-using-phex-library.html svn co https://phex.svn.sourceforge.net/svnroot/phex/phex/trunk phex cd phex svn diff Index: src/main/java/phex/query/DefaultSearchProgress.java =================================================================== --- src/main/java/phex/query/DefaultSearchProgress.java (revision 4531) +++ src/main/java/phex/query/DefaultSearchProgress.java (working copy) @@ -141,4 +141,9 @@ return new DefaultSearchProgress( DEFAULT_QUERY_TIMEOUT, isUrnQuery ? DESIRED_HASH_RESULTS : DESIRED_RESULTS ); } -} \ No newline at end of file + + public static DefaultSearchProgress createStandardProgress( + long timeout, int results) { + return new DefaultSearchProgress(timeout, results); + } +} mvn clean package java -jar target/phex.jar mvn eclipse:eclipse Eclipse(w/ maven plugin) Import.. Existing Projects into Workspace.. project properties.. Java Compiler.. Errors/Warnings.. Enable project specific settings.. Forbidden reference: "Warning" add thirdparty/**/*.jars to build path open class: phex.Main F3, F3, F3... -- I feel bad ._./ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.32.40.176 ※ 編輯: xlk 來自: 114.32.40.176 (07/27 21:01)