Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Discussion (https://www.gnutellaforums.com/general-discussion/)
-   -   failed in locating log (https://www.gnutellaforums.com/general-discussion/80922-failed-locating-log.html)

Alcherenga January 30th, 2008 11:17 AM

failed in locating log
 
hi,
we are developing a simple gnutella client and for testing purposes we are using phex 3. although we could connect and get the 200 OK message we are facing some problem while sending and receiving ping /pongs.

we are connected to high speed internet and 24 X7 and hence we are running phex as an ultrapeer. now our client connects to the phex ultrapeer as node and succesfully receives 200 OK message.

the problem arose when we tried to send ping. the ping is sent without any GGEP extension and we have checked the message which is exacty as defined by 0.6 specs.

the questions is :
a. is there any way to know in phex that the ping is being received from my client .
b. we are unable to find the log files anywhere.
c. a basic quation, in which port the phex sends the pongs. the listening ip: port which is being advertised during the handshake or to the directly connected one. [ i mean we have both the sockets wide open to receive pongs].

could somebody point the location, i searched thru the app and the shared directories, but could n't find thru.

any help will be highly appreciated.

alcherenga,

GregorK January 30th, 2008 03:17 PM

a) The only way to know is by checking the log files or more easily by watching the message counter in the network tab or the statistics tab.
b) By default Phex only writes error to log files. To get more extended logging working check out: http://www.phex.org/wiki/index.php/Logging_API
c) Phex sends pongs back through the connection it receives the pong from. On an incoming connection it is the same port.

Check out MessageDispatcher.handlePing() and MessageDispatcher.respondToPing() to get more details or to debug...

Gregor

Alcherenga January 30th, 2008 10:46 PM

ok, i wlll check the log as mentioned by you. i think in that case if i enable for apache log, i will need a apache log viewer.

regarding the messagedis[patch.handleping and ponghandle, do i need to work out in the source code and modify it to handle it.

for example, i would open a file stream and write there from where the ping has come in.
i checked in the network statistics tab, it say about the pong and the pings but then it doesn't say from where the ping came from and where to pong was sent to.

anyways thanks, got some clue to move forward.


All times are GMT -7. The time now is 03:04 AM.

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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.