Original Post
This is for LL. However, if anyone else can help me, please jump in!
Hi. On page 148 in chapter 4 of your MGP book, you suggest that the reader should add support for more than two people in the SimpleChat program. How do you do this with the SocketObject class that you provide?
I''m assuming that I need to have some kind of accept function in a loop. But I''m not sure how to accept multiple connections because of the blocking SocketObject::Accept() function. Is there a non-blocking version as well? Or is there an obvious way around this that I''m missing from the example code you provided in the chapter?
Also, I''ve looked at the SocketObject header file and see the following functions, but there is no mention or explaination of them.
static void thrReceiveThread(SocketTransmissionStruct *rs);
static void thrSendThread(SocketTransmissionStruct &rs);
Are these part of the solution?
Thanks!