Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   is a server thread necessary now ? (https://www.gnutellaforums.com/general-gnutella-development-discussion/8617-server-thread-necessary-now.html)

abhiexx March 1st, 2002 09:17 PM

is a server thread necessary now ?
 
hi !
i am coding a gnutella clone....i have got to the ping part....ha...don't laugh........every dog has his day..:-))....i am running bearshare...and sending it a ping packet...and expecting it to reply....i am getting none...the bearshare console reports....connection closed because of handshake timeout.....do i have to start a server thread in the background just to test ping ??? cause as u must have guessed i am pretty lazy .....seriiously speaking help will be appreciated.

Moak March 2nd, 2002 09:16 AM

basically: yes

Highly depends on your software architecture. Do you want an GUI/UI (grafical user interface), do you use an asynchronous network structure (which does already spawn threads for you), which programming language and OS (operating system) do you target at? Being lazy is a good thing, I'm too, perhaps you need to give more information to help you.

abhiexx March 2nd, 2002 10:30 AM

hi again !
 
hey moak !
i solved the problem regarding bearshare not ponging me back.....basically i was using 2 separate threads ..on for the handshake and the other for the ping ...and that was probably the dumbest thing i did in my life....maybe i was listening to much rock....:-O or maybe my thinking was getting disturbed by the
relentless....rebooting and the exception throwing on win9x machine....gawd...i wish i could do it in Linux...!

Anyways as advised by his excellency moak starting work on the server thread.....as u might have guessed...using a synchronous. architecture...with blocking threads...MFC and the win32 api.!

1 Gb of thanks :-) and hopefully no more dumb messages from me


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