in reply to Re: Socket Again!!!!
in thread Socket Again!!!!

Bows... With the right hand touching the chest!
One more question pg ....
You had given me a same example using threads...
Suppose you had to choose between the threads and the set of the scripts above, which will it be?
Thanks!

(Bows again ;-) )

Replies are listed 'Best First'.
Re: Re: Re: Socket Again!!!!
by pg (Canon) on Oct 17, 2003 at 05:05 UTC

    Depends on, if you only expect one client (or one client a time), your way is just fine. If you expect multiple clients talking to the server at the same time (and client might come and go ), then sooner or later you have to go with thread. For this kind of application, using thread makes your code more neat, clear, easy to understand, and easy to maintain.

    Play with thread. If you have problem with threading, come and ask, someone here will help.