Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   two quick qestions..... (https://www.gnutellaforums.com/general-gnutella-development-discussion/7636-two-quick-qestions.html)

Unregistered January 28th, 2002 09:54 AM

two quick qestions.....
 
Hi all,
I am truing to implement a Gnutella client and would appreciate help on the following questions:

1) There are a couple of host caches i found on www.gnutella.co.uk :
gnotella.fileflash.com:6346
connect1.gnutellanet.com:6346
router.limewire.com:6346, provided by LimeWire
public.bearshare.net:6346, provided by FreePeers
connect2.gnutellanet.com:6346
connect3.gnutellanet.com:6346
connect4.gnutellanet.com:6346
gnet2.ath.cx:6346

So how do i get the ip addresses of Gnutella servants from these host addresses. Do i have to connect via TCP/IP and they automatically reply with info regarding the servants?

2) Gnutella has reserved the following ports:
TCP: 6346 - Gnutella (svc)
6347 - Gnutella (rtr)
UDP: 6346 - Gnutella (svc)
6347 - Gnutella (rtr)

What fo svc and rtr stand for. Also, should my servant communicate via UDP, TCP or both. Do servants listen to both these ports and both these protocols?

Thank you in advance.

Munjal

Moak January 28th, 2002 10:11 AM

To 1: See article "Hostcache... how do I access them?". A list of current hostcaches is in the sticky thread in this forum.

To 2: Gnutella clients usually use one port (TCP 6346 or any other free port of your choice). Gnutella has no fixed ports, it can handle all incoming connections on one listening socket of your choice.

Have fun coding! :)
Moak

cultiv8r January 29th, 2002 01:14 PM

From a developers view:

You connect to them like any regular Gnutella client (ie., your regular v0.4 or soon v0.6 handshake). Once the handshake was OK, you send out a PING. You'll receive about 10-20 pongs which should automatically be stored in your local host cache. You are disconnected (or disconnect yourself) and start doing your thing. Usually, 10-20 is enough to keep your local host cache running without resorting to any of those sites you mentioned.

gnutellafan January 29th, 2002 02:19 PM

reinventing the wheel?
 
Just curious, but why are you starting a new client. There is a ton of work to go into todays clients and a skilled programer would be more valuable assisting an existing and mature opensource project.

What type of language do you know?

Munjal January 29th, 2002 05:37 PM

Well, I am writing a new client because my thesis advisor wants me to measure the performance of Gnutella. Thus, I need to measure the time taken to search, download etc.
So if you know of any modification of Gnutella doing this already, I would be glad to help with the advancement of Gnutella.

Also, I just bumped across this Java API for Gnutella called Jtella. (Just thought it was worth mentioning!)

Munjal


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