I forgot to add the definition of clients and dataClients. ClientSocket inherits from QTcpSocket and adds just a few parameters like openConnections and so on.
QList<ClientSocket *> clients;
QList<ClientSocket *> dataClients;
QList<ClientSocket *> clients;
QList<ClientSocket *> dataClients;
To copy to clipboard, switch view to plain text mode
Is this the way to go or is there a better way?
Should I rather use lists of actual objects than the pointers? Such as
QList<ClientSocket> clients;
QList<ClientSocket> clients;
To copy to clipboard, switch view to plain text mode
Or is this just wasting memory?
Bookmarks