Re: Save incoming queries to DB or text file?

[email protected]
Newsgroups gmane.network.gnutella.devel
Organization Home, Grenoble, France
Message-ID <[email protected]>
[Found this in a spam folder ...]

Quoting redtag194 <[email protected]> from ml.gnutella.dev-forum:
: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.

Assuming you're running the latest GTKG:

Your best bet then is to create a named pipe as ~/.gtk-gnutella/packets_rx.dump
with this command:

$ mknod ~/.gtk-gnutella/packets_rx.dump p

You can open this pipe via barracuda, and to get all the queries, you can use:

$ barracuda -D ~/.gtk-gnutella/packets_rx.dump | grep ^Query:

This will block until you direct GTKG to write to the named pipe, by running
in another window:

$ echo "set dump_received_gnutella_packets 1" | gtk-gnutella --shell

Happy studying.
Raphael

P.S: You can get barracuda here:

magnet:?dn=barracuda-2007-05-12.tar.bz2&xl=46705&xs=http://83.125.33.40:9281/uri-res/N2R%3Furn:sha1:INPVKV4QFCTHYOQMO5CSXUBNMOJJVO7V
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.