LibBeamApi  0.3.8
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
BoapServer Class Reference

#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 ()
 

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
Enumerator
NOTHREADS 
THREADED 

Constructor & Destructor Documentation

BoapServer::BoapServer ( )
BoapServer::~BoapServer ( )
virtual
BoapServer::BoapServer ( )

Member Function Documentation

BError BoapServer::addObject ( BoapServiceObject object)
BError BoapServer::addObject ( BoapServiceObject object)
virtual
void BoapServer::clientGone ( BoapServerConnection client)
virtual
void * BoapServer::function ( )
privatevirtual

Reimplemented from BThread.

int BoapServer::getConnectionsNumber ( )
BSocket& BoapServer::getEventSocket ( )
BSocket & BoapServer::getEventSocket ( )
BString BoapServer::getHostName ( )
BString BoapServer::getHostName ( )
BSocket& BoapServer::getSocket ( )
BSocket & BoapServer::getSocket ( )
BError BoapServer::init ( int  boapNs = 0)
BError BoapServer::init ( BString  boapNsHost = "",
int  port = 0,
int  threaded = 0,
int  isBoapns = 0 
)
virtual
BoapServerConnection * BoapServer::newConnection ( int  fd,
BSocketAddressINET  address 
)
virtual
BError BoapServer::process ( int  fd)
BError BoapServer::process ( BoapServerConnection conn,
BoapPacket rx,
BoapPacket tx 
)
virtual
BError BoapServer::processEvent ( BoapPacket rx)
BError BoapServer::processEvent ( int  fd)
BError BoapServer::processEvent ( BoapPacket rx)
virtual
BError BoapServer::processEvent ( int  fd)
virtual
BError BoapServer::run ( )
BError BoapServer::run ( int  inThread = 0)
virtual
BError BoapServer::sendEvent ( BoapPacket tx)
BError BoapServer::sendEvent ( BoapPacket tx)
virtual

Member Data Documentation

int BoapServer::oboapNs
private
Boapns::Boapns* BoapServer::oboapns
private
BEvent1Int BoapServer::oclientGoneEvent
private
BList<BoapServerConnection*> BoapServer::oclients
private
BString BoapServer::ohostName
private
int BoapServer::oisBoapns
private
BSocket BoapServer::onet
private
BSocket BoapServer::onetEvent
private
BSocketAddressINET BoapServer::onetEventAddress
private
BUInt64 BoapServer::onumOperations
BPoll BoapServer::opoll
private
BoapPacket BoapServer::orx
private
BList< BoapServiceEntry > BoapServer::oservices
private
int BoapServer::othreaded
private
BoapPacket BoapServer::otx
private

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