chaoticbob
1st March 2010, 21:25
Hi guys,
Just wanted to get some opinions on how to do something. I'm working on a server/client app that has three different types of clients. I would like to write three different classes to handle the three different clients types: clientA, clientB, clientC.
So when using QTcpServer and use either incomingConnection or newConnection - what is a good scheme for sending and acknowledgement, asking for the client type, and then moving the ownership of that socket into one of the respective clientA, clientB, clientC?
Thanks.
Just wanted to get some opinions on how to do something. I'm working on a server/client app that has three different types of clients. I would like to write three different classes to handle the three different clients types: clientA, clientB, clientC.
So when using QTcpServer and use either incomingConnection or newConnection - what is a good scheme for sending and acknowledgement, asking for the client type, and then moving the ownership of that socket into one of the respective clientA, clientB, clientC?
Thanks.