TreeFrogFramework 2.10
Loading...
Searching...
No Matches
tapplicationserverbase.h
Go to the documentation of this file.
1#pragma once
2#include <QHostAddress>
3#include <TGlobal>
4
5
7public:
8 enum OpenFlag {
9 CloseOnExec = 0,
11 };
12
14 virtual bool start(bool) { return false; }
15 virtual void stop() { }
16 virtual void setAutoReloadingEnabled(bool) { }
17 virtual bool isAutoReloadingEnabled() { return false; }
18
19 static bool loadLibraries();
20 static void unloadLibraries();
21 static QDateTime latestLibraryTimestamp();
22 static bool newerLibraryExists();
23 static void nativeSocketInit();
24 static void nativeSocketCleanup();
25 static int nativeListen(const QHostAddress &address, uint16_t port, OpenFlag flag = CloseOnExec);
26 static int nativeListen(const QString &fileDomain, OpenFlag flag = CloseOnExec);
27 static void nativeClose(int socket);
28 static QPair<QHostAddress, uint16_t> getPeerInfo(int socketDescriptor);
29 static int duplicateSocket(int socketDescriptor);
30 static void invokeStaticInitialize();
31 static void invokeStaticRelease();
32
33private:
35
36 friend class TThreadApplicationServer;
37 friend class TMultiplexingServer;
40};
41
The TApplicationServerBase class provides functionality common to an web application server.
Definition tapplicationserverbase.h:6
virtual bool start(bool)
Definition tapplicationserverbase.h:14
virtual void stop()
Definition tapplicationserverbase.h:15
virtual bool isAutoReloadingEnabled()
Definition tapplicationserverbase.h:17
virtual void setAutoReloadingEnabled(bool)
Definition tapplicationserverbase.h:16
OpenFlag
Definition tapplicationserverbase.h:8
@ NonCloseOnExec
Definition tapplicationserverbase.h:10
#define T_CORE_EXPORT
Definition tdeclexport.h:28
#define T_DISABLE_COPY(Class)
Definition tdeclexport.h:37
#define T_DISABLE_MOVE(Class)
Definition tdeclexport.h:41