BoapServer Class Reference

#include <BoapSimple.h>

Inheritance diagram for BoapServer:
BThread

List of all members.

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 Attributes

BUInt64 onumOperations

Private Member Functions

void * function ()

Private Attributes

int othreaded
int oisBoapns
Boapns::Boapnsoboapns
BList< BoapServerConnection * > oclients
BEventInt 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 (  )  [private, virtual]

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 ( int  fd  ) 
BError BoapServer::processEvent ( BoapPacket rx  ) 
BError BoapServer::processEvent ( int  fd  )  [virtual]
BError BoapServer::processEvent ( BoapPacket rx  )  [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]
int BoapServer::oisBoapns [private]
int BoapServer::othreaded [private]

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

Generated on 10 Apr 2013 for LibBeamApi by  doxygen 1.6.1