QTcpSocket *client
Client* client;.....if (client->isRegistered) { client->socket->write(data);}
QTcpSocket *clientclient-> Свойство = true/false
class MainWindow : public QMainWindow{ Q_OBJECT//-------------------};
struct ClientData{QTcpSocket * client;bool authorize;}
while (!m_clients.isEmpty()) { QTcpSocket *client = m_clients.takeFirst(); client->flush(); client->close(); client->deleteLater(); }