void SocksServer::newConnection() { SocksClient *c = new SocksClient(d->serv.nextPendingConnection(), this); connect(c, SIGNAL(error(int)), this, SLOT(connectionError())); d->incomingConns.append(c); incomingReady(); }
void SocksServer::connectionReady(int s) { SocksClient *c = new SocksClient(s, this); connect(c, SIGNAL(error(int)), this, SLOT(connectionError())); d->incomingConns.append(c); incomingReady(); }