Ejemplo n.º 1
0
QHttpServerPrivate::QHttpServerPrivate(QHttpServer *httpServer)
    : QObject(httpServer),
      q(httpServer),
      handler(0)
{
    connect(q, SIGNAL(newConnection()), this, SLOT(onIncomingConnection()));
}
Ejemplo n.º 2
0
O2ReplyServer::O2ReplyServer(QObject *parent): QTcpServer(parent),
  timeout_(15), maxtries_(3), tries_(0) {
    qDebug() << "O2ReplyServer: Starting";
    connect(this, SIGNAL(newConnection()), this, SLOT(onIncomingConnection()));
    replyContent_ = "<HTML></HTML>";
}
Ejemplo n.º 3
0
O2ReplyServer::O2ReplyServer(QObject *parent): QTcpServer(parent) {
    connect(this, SIGNAL(newConnection()), this, SLOT(onIncomingConnection()));
}