Beispiel #1
0
	FastCgiInterface::FastCgiInterface(QObject* parent)
	: CommunicationInterface(parent)
	, m_socketServer(new SocketServer(this))
	{
		connect(
			m_socketServer,
			SIGNAL(newConnection()),
			this,
			SLOT(acceptNewConnection())
		);
	}
Beispiel #2
0
Server::Server(CreateUserLookupFn *createUserLookup, QObject *parent)
  : QObject(parent)
{
  group = new User_Group(createUserLookup, this);
  connect(group, SIGNAL(userAuthenticated()),
          this, SLOT(userAuthenticated()));
  connect(group, SIGNAL(userDisconnected()),
          this, SLOT(userDisconnected()));

  connect(&listener, SIGNAL(newConnection()),
          this, SLOT(acceptNewConnection()));

  sessionUpdateTimer.setSingleShot(true);
  connect(&sessionUpdateTimer, SIGNAL(timeout()),
          this, SLOT(updateNextSession()));
}
Beispiel #3
0
Listener::Listener(QObject *parent)
	: QTcpServer(parent)
{
	connect(this, SIGNAL(newConnection()), SLOT(acceptNewConnection()));
}