Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BOSSCSComm Class Reference

#include <boss_cscomm.h>

List of all members.

Public Member Functions

 BOSSCSComm (const string &host_name, const ConnectionType &T, const short port_id)
 ~BOSSCSComm ()
void sendDocument (const string &id, const string &s)
void sendSignal (const string &id, const char *d, const uint32_t &s)
Document receiveDocument ()
Signal receiveSignal ()
string acceptConnection ()
void closeSock ()
void closeServer ()

Private Member Functions

uint32_t readSize ()
char * readBytes (uint32_t &size)
void writeSize (uint32_t size)

Private Attributes

int server_socket
int boss_socket
sockaddr_in serv_addr
socklen_t sock_len
ConnectionType type


Detailed Description

A class for socket-based communication between BOSS server and client
Author:
Karlheinz Stoeber

Harald Ketzer

Stefan Breuer


Constructor & Destructor Documentation

BOSSCSComm::BOSSCSComm const string &  host_name,
const ConnectionType T,
const short  port_id = DEF_PORT_ID
 

A class for socket-based communication between BOSS server and client

Author:
Karlheinz Stoeber

Harald Ketzer

Stefan Breuer

BOSSCSComm::~BOSSCSComm  ) 
 


Member Function Documentation

string BOSSCSComm::acceptConnection  ) 
 

void BOSSCSComm::closeServer  ) 
 

void BOSSCSComm::closeSock  ) 
 

char * BOSSCSComm::readBytes uint32_t &  size  )  [private]
 

uint32_t BOSSCSComm::readSize  )  [private]
 

Document BOSSCSComm::receiveDocument  ) 
 

Signal BOSSCSComm::receiveSignal  ) 
 

void BOSSCSComm::sendDocument const string &  id,
const string &  s
 

void BOSSCSComm::sendSignal const string &  id,
const char *  d,
const uint32_t &  s
 

void BOSSCSComm::writeSize uint32_t  size  )  [private]
 


Member Data Documentation

int BOSSCSComm::boss_socket [private]
 

struct sockaddr_in BOSSCSComm::serv_addr [private]
 

int BOSSCSComm::server_socket [private]
 

socklen_t BOSSCSComm::sock_len [private]
 

ConnectionType BOSSCSComm::type [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 23:14:40 2005 for BOSS by doxygen 1.3.6