Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Session Class Reference

#include <Session.hpp>

List of all members.

Public Methods

 Session (Bkmd *bkmd, Socket &server)
int poll ()
void send (msgHeader1 &header, const string &data)
void response (int msgType, const string &data, msgHeader1 &header)
DB * getDb ()


Detailed Description

Represents one connection to a bkmd client.


Constructor & Destructor Documentation

Session::Session (  Bkmd *    bkmd,
Socket &    server
) 
 

Constructor. Create a session with this tcpstream attached


Member Function Documentation

DB * Session::getDb (    ) 
 

Get the DB connection. This is used by the message handlers for querying the database.

int Session::poll (    ) 
 

Check if new data arrived. If there are new data they are processed.

void Session::response (  int    msgType,
const string &    data,
msgHeader1 &    header
) 
 

Response to a message. The release, attribute and sequence number of the header are copied into the new message.

void Session::send (  msgHeader1 &    header,
const string &    data
) 
 

Send a message to the connected client.


The documentation for this class was generated from the following files:
Generated on Sun Jan 20 20:59:59 2002 for bkmd by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001