RE: [core-dev] How to connect to a IP while doing keyword search
"Greg Bildson" <[email protected]> Thu, 10 Feb 2005 11:30:58 -0500
| Newsgroups | gmane.network.gnutella.limewire.core.devel |
|---|---|
| Message-ID | <[email protected]> |
Sukesh, Having a newbie in Java working on P2P code is a somewhat dangerous proposition. You seem to be jumping in to the deep end. I would recommend studying the code in much greater detail and studying the tests and their results as well before proceeding. Rather than fiddling with GWebCaches, I would recommend eventually looking at having your ultrapeer act as a UHC. I'll leave it to the rest of the list to help you out in any more detail though. Thanks -greg > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Sukesh > Sent: Thursday, February 10, 2005 10:57 AM > To: [email protected] > Subject: RE: [core-dev] How to connect to a IP while doing keyword > search > > > > Greg, > Thanks for the reply..can you please explain in detail. > What I'm doing now is,in hostcatcher.java > Code---- > String line ="HERE I'm GIVING OUR SERVER IP ADDRESS"; *** so that it > connects to our IP whenever on start up & finds the > Files which are shared on our sever. > System.out.println("Line IpAddress : " + line); > //If endpoint a special GWebCache endpoint? If so, add it to > //gWebCache but not this. > try { > gWebCache.addBootstrapServer(new BootstrapServer(line)); > continue; > } catch (ParseException ignore) {System.out.println("In hostcatcher > exception"+e); } > //Is it a normal endpoint? > try { > add(ExtendedEndpoint.read(line), NORMAL_PRIORITY); > } catch (ParseException pe) { > continue; > } > > I have just graduated from college,I'm newbie in java can you please help > > Thanks, > Sukesh > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Greg Bildson > Sent: Thursday, February 10, 2005 9:01 PM > To: [email protected] > Subject: RE: [core-dev] How to connect to a IP while doing keyword search > > Sukesh, > > You would have to devise a mechanism to always have your leaves connect to > an ultrapeer that you owned on that IP address and you would have > to ensure > that you always had slots available. This is a very imperfect solution. > > If you think that this would influence broader LimeWire clients - well of > course it wouldn't. > > Thanks > -greg > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]]On Behalf Of Sukesh Shetty > > Sent: Wednesday, February 09, 2005 11:55 PM > > To: [email protected] > > Subject: [core-dev] How to connect to a IP while doing keyword search > > > > > > Hi all, > > I have customized limewire source as per our requirement. > > What I want now is whenever any user who uses our version of limewire > > & does a keyword search he/she should first fetch files from our > > server(IP) thn from others. > > Can I put my IP address in gnutella.net file or in hostscatcher.java > > please suggest. > > > > Thanking you in advance, > > Sukesh Shetty > > > > _______________________________________________ > > core-dev mailing list > > [email protected] > > http://www.limewire.org/mailman/listinfo/core-dev > > > _______________________________________________ > core-dev mailing list > [email protected] > http://www.limewire.org/mailman/listinfo/core-dev > > > > _______________________________________________ > core-dev mailing list > [email protected] > http://www.limewire.org/mailman/listinfo/core-dev _______________________________________________ core-dev mailing list [email protected] http://www.limewire.org/mailman/listinfo/core-dev