TreeFrogFramework: TApplicationServerBase Class Reference

#include <tapplicationserverbase.h>

Public Member Functions

virtual ~TApplicationServerBase ()
 
virtual bool start (bool)
 
virtual void stop ()
 
virtual void setAutoReloadingEnabled (bool)
 
virtual bool isAutoReloadingEnabled ()
 

Static Public Member Functions

static bool loadLibraries ()
 
static void unloadLibraries ()
 
static QDateTime latestLibraryTimestamp ()
 
static bool newerLibraryExists ()
 
static void nativeSocketInit ()
 
static void nativeSocketCleanup ()
 
static int nativeListen (const QHostAddress &address, uint16_t port, OpenFlag flag=CloseOnExec)
 
static int nativeListen (const QString &fileDomain, OpenFlag flag=CloseOnExec)
 
static void nativeClose (int socket)
 
static QPair< QHostAddress, uint16_t > getPeerInfo (int socketDescriptor)
 
static int duplicateSocket (int socketDescriptor)
 
static void invokeStaticInitialize ()
 
static void invokeStaticRelease ()
 

The TApplicationServerBase class provides functionality common to an web application server.

◆ OpenFlag

Enumerator
CloseOnExec 
NonCloseOnExec 
TApplicationServerBase::~TApplicationServerBase ( )
virtual

◆ duplicateSocket()

int TApplicationServerBase::duplicateSocket ( int  socketDescriptor)
static

◆ getPeerInfo()

QPair< QHostAddress, uint16_t > TApplicationServerBase::getPeerInfo ( int  socketDescriptor)
static

◆ invokeStaticInitialize()

void TApplicationServerBase::invokeStaticInitialize ( )
static

◆ invokeStaticRelease()

void TApplicationServerBase::invokeStaticRelease ( )
static

◆ isAutoReloadingEnabled()

virtual bool TApplicationServerBase::isAutoReloadingEnabled ( )
inlinevirtual

◆ latestLibraryTimestamp()

QDateTime TApplicationServerBase::latestLibraryTimestamp ( )
static

◆ loadLibraries()

bool TApplicationServerBase::loadLibraries ( )
static

◆ nativeClose()

void TApplicationServerBase::nativeClose ( int  socket)
static

◆ nativeListen() [1/2]

int TApplicationServerBase::nativeListen ( const QHostAddress &  address,
uint16_t  port,
OpenFlag  flag = CloseOnExec 
)
static

Listen a port for connections on a socket.

Listen a port with SO_REUSEADDR option.

This function must be called in a tfmanager process.

This function must be called in a tfserver process.

◆ nativeListen() [2/2]

int TApplicationServerBase::nativeListen ( const QString &  fileDomain,
OpenFlag  flag = CloseOnExec 
)
static

Listen for connections on UNIX domain.

◆ nativeSocketCleanup()

void TApplicationServerBase::nativeSocketCleanup ( )
static

◆ nativeSocketInit()

void TApplicationServerBase::nativeSocketInit ( )
static

◆ newerLibraryExists()

bool TApplicationServerBase::newerLibraryExists ( )
static

◆ setAutoReloadingEnabled()

virtual void TApplicationServerBase::setAutoReloadingEnabled ( bool  )
inlinevirtual

◆ start()

virtual bool TApplicationServerBase::start ( bool  )
inlinevirtual

◆ stop()

virtual void TApplicationServerBase::stop ( )
inlinevirtual

◆ unloadLibraries()

void TApplicationServerBase::unloadLibraries ( )
static

◆ TMultiplexingServer

friend class TMultiplexingServer

friend

◆ TThreadApplicationServer

friend class TThreadApplicationServer

friend

The documentation for this class was generated from the following files: