TreeFrogFramework  1.18
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

Enumerator
CloseOnExec 
NonCloseOnExec 

Constructor & Destructor Documentation

TApplicationServerBase::~TApplicationServerBase ( )
virtual

Member Function Documentation

int TApplicationServerBase::duplicateSocket ( int  socketDescriptor)
static
QPair< QHostAddress, quint16 > TApplicationServerBase::getPeerInfo ( int  socketDescriptor)
static
void TApplicationServerBase::invokeStaticInitialize ( )
static
void TApplicationServerBase::invokeStaticRelease ( )
static
virtual bool TApplicationServerBase::isAutoReloadingEnabled ( )
inlinevirtual
QDateTime TApplicationServerBase::latestLibraryTimestamp ( )
static
bool TApplicationServerBase::loadLibraries ( )
static
void TApplicationServerBase::nativeClose ( int  socket)
static
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.

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

Listen for connections on UNIX domain.

void TApplicationServerBase::nativeSocketCleanup ( )
static
void TApplicationServerBase::nativeSocketInit ( )
static
bool TApplicationServerBase::newerLibraryExists ( )
static
virtual void TApplicationServerBase::setAutoReloadingEnabled ( bool  )
inlinevirtual
virtual bool TApplicationServerBase::start ( bool  )
inlinevirtual
virtual void TApplicationServerBase::stop ( )
inlinevirtual
void TApplicationServerBase::unloadLibraries ( )
static

Friends And Related Function Documentation

friend class TMultiplexingServer
friend
friend class TThreadApplicationServer
friend

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