Cern
LibTmsApi 2.3.0

#include <BoapSimple.h>

Inheritance diagram for BoapServer:
BThread

Public Types

enum  { NOTHREADS =0 , THREADED =1 }
 

Public Member Functions

 BoapServer ()
 
virtual ~BoapServer ()
 
virtual BError init (BString boapNsHost="", int port=0, int threaded=0, int isBoapns=0)
 
virtual BError run (int inThread=0)
 
virtual BError process (BoapServerConnection *conn, BoapPacket &rx, BoapPacket &tx)
 
virtual BError processEvent (BoapPacket &rx)
 
virtual BError addObject (BoapServiceObject *object)
 
virtual BError sendEvent (BoapPacket &tx)
 
virtual BError processEvent (int fd)
 
virtual void clientGone (BoapServerConnection *client)
 
BSocketgetSocket ()
 
BSocketgetEventSocket ()
 
BString getHostName ()
 
int getConnectionsNumber ()
 
virtual BoapServerConnectionnewConnection (int fd, BSocketAddressINET address)
 
 BoapServer ()
 
BError init (int boapNs=0)
 
BError run ()
 
BError processEvent (BoapPacket &rx)
 
BError addObject (BoapServiceObject *object)
 
BError process (int fd)
 
BError sendEvent (BoapPacket &tx)
 
BSocketgetSocket ()
 
BSocketgetEventSocket ()
 
BError processEvent (int fd)
 
BString getHostName ()
 
- Public Member Functions inherited from BThread
 BThread ()
 
virtual ~BThread ()
 
int setInitPriority (int policy, int priority)
 
int setInitStackSize (size_t stackSize)
 
int start ()
 
void * result ()
 
int running ()
 
int setPriority (int policy, int priority)
 
int cancel ()
 
void * waitForCompletion ()
 
pthread_t getThread ()
 
virtual void * function ()
 

Public Attributes

BUInt64 onumOperations
 

Private Member Functions

void * function ()
 

Private Attributes

int othreaded
 
int oisBoapns
 
Boapns::Boapnsoboapns
 
BList< BoapServerConnection * > oclients
 
BEvent1Int oclientGoneEvent
 
BList< BoapServiceEntryoservices
 
BPoll opoll
 
BSocket onet
 
BSocket onetEvent
 
BSocketAddressINET onetEventAddress
 
BString ohostName
 
int oboapNs
 
BoapPacket orx
 
BoapPacket otx
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NOTHREADS 
THREADED 

Constructor & Destructor Documentation

◆ BoapServer() [1/2]

BoapServer::BoapServer ( )

◆ ~BoapServer()

BoapServer::~BoapServer ( )
virtual

◆ BoapServer() [2/2]

BoapServer::BoapServer ( )

Member Function Documentation

◆ addObject() [1/2]

BError BoapServer::addObject ( BoapServiceObject object)
virtual

◆ addObject() [2/2]

BError BoapServer::addObject ( BoapServiceObject object)

◆ clientGone()

void BoapServer::clientGone ( BoapServerConnection client)
virtual

◆ function()

void * BoapServer::function ( )
privatevirtual

Reimplemented from BThread.

◆ getConnectionsNumber()

int BoapServer::getConnectionsNumber ( )

◆ getEventSocket() [1/2]

BSocket & BoapServer::getEventSocket ( )

◆ getEventSocket() [2/2]

BSocket & BoapServer::getEventSocket ( )

◆ getHostName() [1/2]

BString BoapServer::getHostName ( )

◆ getHostName() [2/2]

BString BoapServer::getHostName ( )

◆ getSocket() [1/2]

BSocket & BoapServer::getSocket ( )

◆ getSocket() [2/2]

BSocket & BoapServer::getSocket ( )

◆ init() [1/2]

BError BoapServer::init ( BString  boapNsHost = "",
int  port = 0,
int  threaded = 0,
int  isBoapns = 0 
)
virtual

◆ init() [2/2]

BError BoapServer::init ( int  boapNs = 0)

◆ newConnection()

BoapServerConnection * BoapServer::newConnection ( int  fd,
BSocketAddressINET  address 
)
virtual

◆ process() [1/2]

BError BoapServer::process ( BoapServerConnection conn,
BoapPacket rx,
BoapPacket tx 
)
virtual

◆ process() [2/2]

BError BoapServer::process ( int  fd)

◆ processEvent() [1/4]

BError BoapServer::processEvent ( BoapPacket rx)
virtual

◆ processEvent() [2/4]

BError BoapServer::processEvent ( BoapPacket rx)

◆ processEvent() [3/4]

BError BoapServer::processEvent ( int  fd)
virtual

◆ processEvent() [4/4]

BError BoapServer::processEvent ( int  fd)

◆ run() [1/2]

BError BoapServer::run ( )

◆ run() [2/2]

BError BoapServer::run ( int  inThread = 0)
virtual

◆ sendEvent() [1/2]

BError BoapServer::sendEvent ( BoapPacket tx)
virtual

◆ sendEvent() [2/2]

BError BoapServer::sendEvent ( BoapPacket tx)

Member Data Documentation

◆ oboapns

Boapns::Boapns* BoapServer::oboapns
private

◆ oboapNs

int BoapServer::oboapNs
private

◆ oclientGoneEvent

BEvent1Int BoapServer::oclientGoneEvent
private

◆ oclients

BList<BoapServerConnection*> BoapServer::oclients
private

◆ ohostName

BString BoapServer::ohostName
private

◆ oisBoapns

int BoapServer::oisBoapns
private

◆ onet

BSocket BoapServer::onet
private

◆ onetEvent

BSocket BoapServer::onetEvent
private

◆ onetEventAddress

BSocketAddressINET BoapServer::onetEventAddress
private

◆ onumOperations

BUInt64 BoapServer::onumOperations

◆ opoll

BPoll BoapServer::opoll
private

◆ orx

BoapPacket BoapServer::orx
private

◆ oservices

BList< BoapServiceEntry > BoapServer::oservices
private

◆ othreaded

int BoapServer::othreaded
private

◆ otx

BoapPacket BoapServer::otx
private

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