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 April 2nd, 2006
Jonne's Avatar
Disciple
 
Join Date: April 2nd, 2006
Location: Belgium
Posts: 11
Jonne is flying high
Default Freebase & Phex

Hello all,
I recently noticed that somebody (ZwiSter) added a magnet link to Phex on my website, which is great.

I also noticed that there are a few entries by Phex in my cache. This surprised me, as the cache only seemed to work for G2 clients so far (or MP clients, like some people like to call it here ) because of the way headers are sent in Gnutella clients. I was just wondering if it really works for Phex clients, or if this is some weird fluke.

So I'm posting here to ask if some Phex users could try and download some files off freebase (just pick any file, it's all freeware without ads or spyware, and most of it is open source), and see if your IP and client shows up in my cache.

If you want an explanation on what this cache is and what it does, I wrote an explanation here: http://www.freebase.be/g2cache.php .
Reply With Quote
  #2 (permalink)  
Old April 4th, 2006
Jonne's Avatar
Disciple
 
Join Date: April 2nd, 2006
Location: Belgium
Posts: 11
Jonne is flying high
Default

Well, it seems to work. I've seen a new Phex in there now.

So if you ever post a magnet somewhere for Phex and/or Shareaza/morph/GnucDNA users, you can append the cache url to the magnet link so the people clicking the magnet get instant alt sources without having to search the network (unless they're the first one using the link, ofcourse ). Instructions on how to use it are here.

Thanks to whoever downloaded that Bridge Building game.
Reply With Quote
  #3 (permalink)  
Old April 5th, 2006
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Can you give more details how this works. I mean Phex wont parse out the cache list for sure. What headers are you sending and recognizing.
__________________
Reply With Quote
  #4 (permalink)  
Old April 7th, 2006
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Which license do you use for your alt-loc script?
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #5 (permalink)  
Old June 4th, 2006
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

I linked to your site from:

http://phex.kouk.de/wiki/index.php/Hauptseite

which is the main page of the Phex wiki (as soon as I got enough translatioins done it will go to a dedicated subpage, but as of now, it is a guide for users who want to download legal content with Phex).

Best wishes,
Arne
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #6 (permalink)  
Old July 10th, 2006
Jonne's Avatar
Disciple
 
Join Date: April 2nd, 2006
Location: Belgium
Posts: 11
Jonne is flying high
Default some stuff

Hi,
I'm bumping this thread again because I have a few questions about Phex:
I've seen a lot of downloads for the Phex installer on my site, and I was wondering where you're using a magnet for it. (If it keeps going at this rate, you'll beat cd-burner xp pro as top download ).

I've also seen that you use the cache on this page for some content, but that you use &as= instead of &xs= . Why are you using that? It doesn't seem to be supported by gtk-gnutella (at least the version I have installed now, i should recompile it to see if more recent versions support it). I haven't tested any other clients, but I just want to know what the difference is between &as and &xs.

I'd also like to know if there's an IRC channel you guys hang out in .
Reply With Quote
  #7 (permalink)  
Old July 10th, 2006
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Hi,

It's nice to see you again in here

first as & xs:
"as" means: acceptable substitute, which means, you can't be completely sure, if the source really has the correct file, for example to add a http-url, which can have different content later (like an error-page, because the content is down or an updated version of the file). You can use it to serve first sources for a magnet. You can find an example of that useage on my webpage:
- Page with magnets (to songs): http://draketo.de/inhalt/lieder.html
- Magma-list: http://draketo.de/inhalt/lieder/drak...ielliste.magma

"xs" instead means exact source, which contains a definite hash, in most cases the sha1-hash, to identify the content, so it will always be exactly the content you request.

And now as I think of it, the link to your cache should be an "xs", as it identifies the file via its hash. Sadly Phex accepts only one xs-source yet, and I need that one to reference to my own client to deeliver a first source.

Normally a client should first use only "xs"-sources and fall back to as-sources if no xs-sources are avaible.

Exact procedure would be, as far as I know, to

1.) search the network for the file. If the program doesn't find it in time,

2.) try the exact sources, and if they aren't reacheable (or too slow),

3.) try the acceptable substitutes. But if you download from accepteable substitutes, you _must_ check the file after downloading, because it could be corrupt (you should also check other downloaded files, but there it isn't a must).

And for Phex being downloaded quite often: I followed one advice you gave on your page:
"Keep in mind that the cache's efficiency improves if it gets used more, so I'd encourage people to just send me code patches, instead of using it on your own. Because one full cache is better than lots of empty caches. This code doesn't work on a lot of hosts, as you need to be able to read http headers directly."

And since Phex does its internal updates via magnet-links and the gnutella-network (what's the use of creating a p2p-app, when you don't trust it enough to download its updates via its own network?), I added your cache to our update magma-lists.

That means, every Phex which is updated internally contacts your cache and gets additional sources through it.

Should the strain get too much for your server, please tell us at once, so we can take it out of the magnets.

In the meantime, I'd like to say a big "Thank you!"

Your cache is something I hoped to see for years!

And I think it is all that is needed to make Gnutella just as effective as (or even more effective than) BitTorrent, since it doesn't need the cache, but can use it and gets more efficient by doing so (and a Phex will contact it regularly while it downloads (as it seems at the moment, that's once every 6 hours, that's what it tells me for this download), so you can even see who (and how many) has/have been active during the last "half day").

Your cache can be used perfectly together with http-altlocs:
A client gets a magnet and tries the Gnutella network.
If it doesn't find anything, it tries your cache, and if there aren't working clients in there, it downloads via http and becomes a working first source for other clients, who then spare the http-source.
So this eliminates the need to have a seeder running all the time. All that's needed is a http-source (which can be as slow as you want it) and your cache (which I hope is low profile, and which others can include very easily), and voila, you have magnets which are almost guaranteed to work, and fast.

And that's something, which has been missing in Gnutella (since it doesn't have searching by hash, because that would break some of the rather efficient optimizations which are being used (mainy QRP and Dynamic Querying, which each save about 70-90% bandwidth)).

Maybe you could tell the folks over at LimeWire about it. I think they could be quite glad to know about it (they've been trying to make magnets more efficient for some time now, but their solution was a quite heavy customized client instead of a slim server), or better still, tell it to teh Gnutella Developer Forum:
http://groups.yahoo.com/group/the_gdf/

(I can also post there about it, if you'd like me to).

Best wishes,
Arne
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #8 (permalink)  
Old July 10th, 2006
Jonne's Avatar
Disciple
 
Join Date: April 2nd, 2006
Location: Belgium
Posts: 11
Jonne is flying high
Default

xs & as: If I read that post correctly, the cache is best served with xs, even though it doesn't send any file chunks by itself? I guess you should try to fix the bug that limits Phex to only one xs then, just so you can move to magnets that are better supported by the other clients (I have no idea who supports 'as', but I have a feeling not a lot support it, since most of them verify the downloads anyway).

As for the procedure for handling a download: I think the network is best served if the client tries the cache first, before searching the network. If the cache has useable sources, there shouldn't even be a need to do a network search during the download.

The Phex magnet: the load isn't anything freebase can't handle. The cache really doesn't take a lot of load, it's just sending a few headers and doing 3 db queries. I certainly don't mind you using it (In fact, I wrote the thing for people to use it. And to count downloads ). I'm just always curious to know where people come from (i don't see any referers for magnets).

Using it for autoupdate is an excellent idea. If you ever feel like extending the script in a way that wouldn't exactly work with freebase, like sending the first few users to a http download to get it going quicker (or anything else you can imagine), feel free to host it yourself then if it's for specialised use. (although i might add an upload/alternate location field to freebase myself, i see some of the less popular downloads just don't find sources by themselves, even with Shareaza).

About Limewire: I've tried to get in touch with the people from Limewire (well, the guys that hung out in #limewire, those probably weren't the right people to talk to), and they weren't exactly supportive (except the guy who runs magnetmix).

An extra problem is that Limewire doesn't send its ip address and port when it connects initially, so basicly Limewire users (like firewalled users) never get added to the cache (because i have no way of knowing what port the client runs on). They do get to 'leech' the alt sources out of the cache, so it's not a big problem unless they're the vast majority of users (which is the current situation, sadly).

If they're really serious about improving magnets so they actually work on gnutella, I'd welcome it, ofcourse. I guess you could mention it on the gdf, if you want to. You know better than I who to talk to, and how to address them.
Reply With Quote
  #9 (permalink)  
Old July 11th, 2006
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Hi Jonne,

"as" _should_ be supported by all (as it is part of the magnet standard: http://magnet-uri.sf.net ), but in fact isn't, because for instance limewire often doesn't do http-downloads.

The autoupdate already uses http-urls as starting location, even though I assume they are often not really needed.

You can get more infos on that in my infotext about magma lists (lists of magnets, similar to collections in shareaza, but simpler, more readeable and most importantly: easy to create automatically):
http://www.phex.org/mambo/content/view/56/47/
Phex uses magma-lists which contain the magnet for the update.

Also there are some more infos on magnets in my "GnuFU: Gnutella For Users" Wiki:
http://basis.gnufu.net/gnufu/index.p...netMakingGuide
(and if you'd like to add infos about your cache into that guide, feel free to do so. It's wiki for a reason )

Maybe it would be a solution to add alternate sources to the magnets instead of having them inside your script. Feels somehow more elegant to me.
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #10 (permalink)  
Old July 11th, 2006
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Maybe you'll also take interest in Decentral Content Distribution using Phex. Some of it might also apply for Shareaza.

PS: I'm not on IRC, I don't know how Gregor does it.

But you can contact me via icq (48355585), aim (erynniakh), yim (arne_bab) or jabber (arne@jabber.fsfe.org, drak@kdetalk.net).
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.

Last edited by arne_bab; July 11th, 2006 at 06:30 PM.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] Phex 2.6.4.89 - phex upload stuck with "initializing" uploads pawelsz General Discussion 1 January 31st, 2006 03:34 PM
No downloads from phex to phex Only A Hobo General Discussion 3 October 21st, 2005 03:20 AM
[BUG] Phex 2.6.4.89 - phex window graphic corruption pawelsz General Discussion 4 September 18th, 2005 07:38 PM
Phex 2.4.2.88 jeevanullas General Discussion 2 June 7th, 2005 06:27 AM
Decentralized Host-Cache - Only PHEX has one - So Promote PHEX Unregistered General Discussion 0 January 31st, 2002 06:29 AM


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