Gnutella Forums  

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

General Discussion For anything which doesn't fit somewhere else (for PHEX users)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 30th, 2008
Disciple
 
Join Date: January 30th, 2008
Posts: 11
Alcherenga is flying high
Default 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,
Reply With Quote
  #2 (permalink)  
Old January 30th, 2008
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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
__________________
Reply With Quote
  #3 (permalink)  
Old January 30th, 2008
Disciple
 
Join Date: January 30th, 2008
Posts: 11
Alcherenga is flying high
Default

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



All times are GMT -7. The time now is 09:17 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.