class HttpService : public QtService<QCoreApplication>
{
public:
HttpService(int argc, char **argv)
: QtService<QCoreApplication>(argc, argv, "Qt HTTP Daemon")
{
setServiceDescription("A dummy HTTP service implemented with Qt");
setServiceFlags(QtServiceBase::CanBeSuspended);
}
};
以上是网上流行的用QT写的Http server,不知道这个QtService哪有?