Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Help & Support
Register FAQ The Twelve Commandments Members List Calendar Arcade 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)


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2 (permalink)  
Old June 8th, 2009
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
 


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.