Hiya! buddies. How's everything in the Ranch?
Have a nice happy and safe Halloween!
Leaving the ghostly matters aside I have a question concerning sockets and threads.
There's an exercise in the Head First book, it's about making a chat application, but in page 488 I don't understand the explanation given for not using Option number 2. It says:
Option Two: Read something in from the server each time the user sends a message.
--The book states that this option shouldn't be considered because it's an
arbitrary time to check for messages.
Could someone explain me
Why is it arbitrary? --
because I would have done exactly as suggested in option 2. And more Importantly,
I don't understand
Option 3: Read messages as soon as they're sent from the server
How exactly is option 3 different from Option 2? I don't quite get it. *Help Me
I anticipate my most sincere gratitude for all you time.
Sincerely,
Jose