TreeFrogFramework  1.29
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
TApplicationServerBase Class Reference

#include <tapplicationserverbase.h>

Public Types

enum  OpenFlag { CloseOnExec = 0, NonCloseOnExec }
 

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, quint16 port, OpenFlag flag=CloseOnExec)
 
static int nativeListen (const QString &fileDomain, OpenFlag flag=CloseOnExec)
 
static void nativeClose (int socket)
 
static QPair< QHostAddress, quint16 > getPeerInfo (int socketDescriptor)
 
static int duplicateSocket (int socketDescriptor)
 
static void invokeStaticInitialize ()
 
static void invokeStaticRelease ()
 

Friends

class TThreadApplicationServer
 
class TMultiplexingServer
 

Detailed Description

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

Member Enumeration Documentation

◆ OpenFlag

Enumerator
CloseOnExec 
NonCloseOnExec 

Constructor & Destructor Documentation

◆ ~TApplicationServerBase()

TApplicationServerBase::~TApplicationServerBase ( )
virtual

Member Function Documentation

◆ duplicateSocket()

int TApplicationServerBase::duplicateSocket ( int  socketDescriptor)
static

◆ getPeerInfo()

QPair< QHostAddress, quint16 > 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,
quint16  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

Friends And Related Function Documentation

◆ TMultiplexingServer

friend class TMultiplexingServer
friend

◆ TThreadApplicationServer

friend class TThreadApplicationServer
friend

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