Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 23rd, 2009
kelsayfst's Avatar
Disciple
 
Join Date: September 17th, 2006
Location: Center Of The Earth, otherwords HELL
Posts: 10
kelsayfst is flying high
Question Best way blocking, non-blocking, async, multiplexing

What is the best way to create a gnutella client that use least threads as possible ex.(blocking, non-blocking, async, multiplexing)?

I creating a client in csharp.
I need alot of feedback about your opinions so I know which to go with this.
Reply With Quote
  #2 (permalink)  
Old July 26th, 2009
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

That's not that easy to answer. I know that Phex uses nonblocking IO.

Maybe you could begin by posting your thoughts about the different methods.
__________________

-> 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
  #3 (permalink)  
Old July 27th, 2009
kelsayfst's Avatar
Disciple
 
Join Date: September 17th, 2006
Location: Center Of The Earth, otherwords HELL
Posts: 10
kelsayfst is flying high
Default

Why I ask? Dealing with the UltraPeer system. I don't want to keep starting new threads for every connections that I get when my client become an ultrapeer or not. So I know that non blocking and multiplexing is better, but with this I have to code alot more for this. And other words too many threads will slow your down your client. I want my client to save on cpu, memory, and etc. as much as possible.
Reply With Quote
  #4 (permalink)  
Old July 30th, 2009
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

So you want the least thread intensive way of keeping the connections?

In that case, you could ask Gregor from Phex. He's implemented Nonblocking IO in Phex to archieve that goal, and he had a few more longterm ideas.

Just post your question to the Phex Development board, so he sees it:

- Development Open Discussion - Gnutella Forums

But my question was not "why?" - I asked about your thoughts on the different techniques.
__________________

-> 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
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



All times are GMT -7. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.