W
Webster
Hello,
What's the best way to run a client-server interaction using some
standardized protocol such as nntp?? That is, should you run a thread that
just does a receive loop from the server so that if the server sends
anything, it will be received? Or what about if everytime you send data,
then you do a receive; so if you were *expecting* something is the only time
to call a receive??
I think it's the former because then if anything, you are getting all the
messages the server is sending and you can parse/perform actions
accordingly... but I'm not so sure :-/
Thanks!
What's the best way to run a client-server interaction using some
standardized protocol such as nntp?? That is, should you run a thread that
just does a receive loop from the server so that if the server sends
anything, it will be received? Or what about if everytime you send data,
then you do a receive; so if you were *expecting* something is the only time
to call a receive??
I think it's the former because then if anything, you are getting all the
messages the server is sending and you can parse/perform actions
accordingly... but I'm not so sure :-/
Thanks!