Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
CommManager Class Reference

#include <CommManager.h>

List of all members.

Classes

struct  CallBack

Public Member Functions

bool addToReceptionField (unsigned char id)
bool close ()
bool close ()
 CommManager ()
 CommManager (const char *initseq_filename=NULL)
bool open (const char *hostname, unsigned int port)
bool open (const char *hostname, unsigned int port)
bool removeFromReceptionField (unsigned char id)
bool resetReceptionField ()
bool send (const Datagram &dgm)
bool send (Datagram &dgm)
void setVerboseLevel (unsigned int v)
Datagram wait (unsigned char id)
bool wait (unsigned char id, Datagram &dgm, double timeout=1.0)
 ~CommManager ()
 ~CommManager ()

Protected Member Functions

bool reconnect ()
void run ()
bool sendInitSeq ()
void store (const Datagram &dgm)

Protected Attributes

CallBack cb [256]
pthread_t in_thread
std::list< Datagraminbox
std::vector< Datagraminit_seq
pthread_mutex_t mtx
DgmQueue Q
Socketsock
pthread_mutex_t sockmtx
bool terminate
unsigned int verbose

Friends

void * commmanager_inthread (void *)
void * commmanager_inthread (void *)

Detailed Description

Definition at line 12 of file CommManager.h.


Constructor & Destructor Documentation

CommManager::CommManager ( const char *  initseq_filename = NULL)

Definition at line 10 of file CommManager.cpp.

Definition at line 52 of file CommManager.cpp.


Member Function Documentation

bool CommManager::addToReceptionField ( unsigned char  id)

Definition at line 221 of file CommManager.cpp.

Definition at line 152 of file CommManager.cpp.

bool CommManager::open ( const char *  hostname,
unsigned int  port 
)
bool CommManager::open ( const char *  hostname,
unsigned int  port 
)

Definition at line 99 of file CommManager.cpp.

bool CommManager::reconnect ( ) [protected]

Definition at line 137 of file CommManager.cpp.

bool CommManager::removeFromReceptionField ( unsigned char  id)

Definition at line 227 of file CommManager.cpp.

Definition at line 233 of file CommManager.cpp.

void CommManager::run ( ) [protected]

Definition at line 167 of file CommManager.cpp.

bool CommManager::send ( const Datagram dgm)
bool CommManager::send ( Datagram dgm)

Definition at line 205 of file CommManager.cpp.

bool CommManager::sendInitSeq ( ) [protected]

Definition at line 64 of file CommManager.cpp.

void CommManager::setVerboseLevel ( unsigned int  v)

Definition at line 124 of file CommManager.cpp.

void CommManager::store ( const Datagram dgm) [protected]
Datagram CommManager::wait ( unsigned char  id)
bool CommManager::wait ( unsigned char  id,
Datagram dgm,
double  timeout = 1.0 
)

Definition at line 239 of file CommManager.cpp.


Friends And Related Function Documentation

void* commmanager_inthread ( void *  arg) [friend]

Definition at line 57 of file CommManager.cpp.

void* commmanager_inthread ( void *  arg) [friend]

Definition at line 57 of file CommManager.cpp.


Member Data Documentation

CallBack CommManager::cb[256] [protected]

Definition at line 18 of file CommManager.old.h.

pthread_t CommManager::in_thread [protected]

Definition at line 18 of file CommManager.h.

std::list<Datagram> CommManager::inbox [protected]

Definition at line 12 of file CommManager.old.h.

std::vector<Datagram> CommManager::init_seq [protected]

Definition at line 27 of file CommManager.h.

pthread_mutex_t CommManager::mtx [protected]

Definition at line 21 of file CommManager.old.h.

DgmQueue CommManager::Q [protected]

Definition at line 17 of file CommManager.h.

Socket * CommManager::sock [protected]

Definition at line 16 of file CommManager.h.

pthread_mutex_t CommManager::sockmtx [protected]

Definition at line 19 of file CommManager.h.

bool CommManager::terminate [protected]

Definition at line 15 of file CommManager.h.

unsigned int CommManager::verbose [protected]

Definition at line 21 of file CommManager.h.


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


canon_vbc50i
Author(s): Cedric Pradalier
autogenerated on Mon Jan 6 2014 11:18:28