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