![]() |
|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Discussion For anything which doesn't fit somewhere else (for PHEX users) |
![]() |
| LinkBack | Thread Tools | Display Modes |
| |||
![]() 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, |
| |||
![]() 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 |
| |||
![]() 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. |
![]() |
| |