Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Help & Support
Register FAQ The Twelve Commandments Members List Find the Best VPN Today's Posts

Help & Support Information on the useage and anything else of Phex
- Unless you are using or asking about PHEX, please do not post in this section
(Get ”Phex 3.4.2.163 universal" now)


Reply
 
Thread Tools Display Modes
  #1  
Old June 7th, 2009
writetreatage writetreatage is offline
Disciple
 
Join Date: November 11th, 2004
Posts: 10
writetreatage is flying high
Default Search QueriesLog?

Is it possible to log the incoming search queries in Phex 3.4.xx.xx? I thought a line in the phex.cfg file of the following might work:

searchMonitorFile=C\:\\phex\\query.log

Any suggestions?
Reply With Quote
  #2  
Old June 8th, 2009
GregorK GregorK is offline
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

The concept was changed. But the functionality is still available you just need to hook it into the code by yourself.
Here is some example code blog:

Code:
     File file = new File( "/phex/query.log" );
     File parent = file.getParentFile();
     if ( parent != null )
     {
         parent.mkdirs();
     }
     file.createNewFile();
     fileWriter = new FileWriter( file.getAbsolutePath(), true );
     QueryMsgToWriterMonitor monitor = new QueryMsgToWriterMonitor( fileWriter );
     Servent.getInstance().getMessageService().addMessageSubscriber(
                    QueryMsg.class, monitor );
Also check out QueryMsgToWriterMonitor.java in SVN:
SourceForge.net Repository - [phex] View of /phex/trunk/src/main/java/phex/query/QueryMsgToWriterMonitor.java

Gregor
__________________
Reply With Quote
  #3  
Old June 11th, 2009
rsgrady rsgrady is offline
Novicius
 
Join Date: June 11th, 2009
Posts: 1
rsgrady is flying high
Default

Where would this code snippet be added?

Does this require recompilation?

The link you listed for additional info is broken.
Reply With Quote
  #4  
Old June 14th, 2009
GregorK GregorK is offline
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

You could add it to the phex.query.QueryManager constructor line 79

Yes you need to recompile.

The link should work, try it again may SF had a downtime.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search returning two bogus results no matter what I search? Orphan707 General Windows Support 2 February 21st, 2009 02:34 AM
2 search issues (junk shows up repeatedly, search gives results not specific enough) matrickz Download/Upload Problems 1 October 6th, 2008 02:04 AM
Retaining Last Search (Or History) When Clicking Search After A Search adamlau New Feature Requests 2 January 5th, 2005 04:10 PM
LimeWire absolutely needs 'search more' button, or auto-search capability rockkeys LimeWire Beta Archives 3 October 1st, 2003 05:55 AM
Whan I Search download it goes to search to mean to time mean times OFgamer2 XoloX Beta program 1 December 1st, 2002 03:09 PM


All times are GMT -7. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.

Copyright © 2026 Gnutella Forums
All Rights Reserved