Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Sending Ping Requests (https://www.gnutellaforums.com/general-gnutella-development-discussion/18753-sending-ping-requests.html)

sriram January 25th, 2003 07:20 PM

Sending Ping Requests
 
I am trying to send a few ping requests and want to handle the pong replies. What is the best way to go about it?

I tried extending StandardMessageRouter class and overriding handlePingRequestForMe method. I initialized the required classes like acceptor FileManager, Authenticator .... etc in a main method but got the following exception:

java.lang.NullPointerException
at com.sun.java.util.collections.Arrays.sort(Arrays.j ava:1102)
at com.limegroup.gnutella.FileManager.loadSettingsBlo cking(FileManager.j
ava:472)
at com.limegroup.gnutella.FileManager$1.run(FileManag er.java:416)
java.io.IOException
at com.limegroup.gnutella.util.SocketOpener.connect(S ockets.java:183)
at com.limegroup.gnutella.util.Sockets.connect(Socket s.java:105)
at com.limegroup.gnutella.Connection.initializeWithou tRetry(Connection.j
ava:253)
at com.limegroup.gnutella.Connection.initialize(Conne ction.java:213)
at com.limegroup.gnutella.ManagedConnection.initializ e(ManagedConnection
.java:349)
at com.limegroup.gnutella.ConnectionManager.initializ eExternallyGenerate
dConnection(ConnectionManager.java:1225)
at com.limegroup.gnutella.ConnectionManager.createCon nectionBlocking(Con
nectionManager.java:173)
at myStart.main(myStart.java:29)
******************************************
Thanks in advance for any help

Sriram


All times are GMT -7. The time now is 03:51 PM.

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.