#include <Session.hpp>
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 () |
|
||||||||||||
|
Constructor. Create a session with this tcpstream attached |
|
|
Get the DB connection. This is used by the message handlers for querying the database. |
|
|
Check if new data arrived. If there are new data they are processed. |
|
||||||||||||||||
|
Response to a message. The release, attribute and sequence number of the header are copied into the new message. |
|
||||||||||||
|
Send a message to the connected client. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001