QHostAddress QAbstractSocket::peerAddress ()
QSet<QPair<QHostAddress, quint16> > m_clients;......QTcpSocket * peerSocket = m_server->nextPendingConnection();QPair<QHostAddress, quint16> peerData = QPair<QHostAddress, quint16>(peerSocket->peerAddress(), peerSocket->peerPort());m_clients.insert(peerData);