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.
In reply to Re: Re: Re: Socket Again!!!!
by pg
in thread Socket Again!!!!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |