Save incoming queries to DB or text file?

"redtag194" <[email protected]>
Newsgroups gmane.network.gnutella.devel
Message-ID <[email protected]>
Hi,
I am doing some research on p2p and would like to save incoming
queries to a DB or text file.

I am using gtk-gnutella and this already has an option to "monitor"
incoming searches via the GUI (user selectable), but this is only to
the screen.

My question is this:
- Should I look to modify the code at this point and get the output
from the screen written to a file? 
*OR*
- Should I try to get the message once it has been successfully
deflated from the TCP stream? This will get me the whole QUERY msg. 

Unfortunately I am not a very good programmer and I am more interested
in the statistical analysis!
Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.