void NetworkLink::makeSignalConnection() { connect(m_socketTcp, SIGNAL(readyRead()), this, SLOT(reception())); connect(m_socketTcp, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(erreurDeConnexion(QAbstractSocket::SocketError))); connect(m_socketTcp, SIGNAL(disconnected()), this, SLOT(p_disconnect())); }
void g_disconnect(p_scr *s) { if (s) { int i; char *name; for (i=0 ; i<n_screens ; i++) { if (g_screens[i].s == s) { name = g_screens[i].name; g_screens[i].name = 0; g_screens[i].s = 0; p_free(name); } } p_disconnect(s); } }