QTcpSocket斷線重連

m_pTcpSocket=new QTcpSocket; connect(m_pTcpSocket,SIGNAL(disconnected()), this,SLOT(slotDisconnected()),Qt::DirectConnection); m_pTcpSocket->connectToHost(HostAddr,Port); if(m
相關文章
相關標籤/搜索