コード例 #1
0
ファイル: qhttpserver.cpp プロジェクト: Kuipers/qhttpengine
QHttpServerPrivate::QHttpServerPrivate(QHttpServer *httpServer)
    : QObject(httpServer),
      q(httpServer),
      handler(0)
{
    connect(q, SIGNAL(newConnection()), this, SLOT(onIncomingConnection()));
}
コード例 #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>";
}
コード例 #3
0
ファイル: o2replyserver.cpp プロジェクト: binaryking/nub
O2ReplyServer::O2ReplyServer(QObject *parent): QTcpServer(parent) {
    connect(this, SIGNAL(newConnection()), this, SLOT(onIncomingConnection()));
}