#include <PPTServer.h>
Inheritance diagram for PPTServer:
Public Member Functions | |
PPTServer (ServerHandler *handler, SocketListener *listener, bool isSecure) | |
virtual | ~PPTServer () |
virtual void | initConnection () |
virtual void | closeConnection () |
virtual void | dump (ostream &strm) const |
dumps information about this object | |
virtual void | send (const string &buffer) |
virtual void | sendExit () |
virtual bool | receive (ostream *strm=0) |
virtual Socket * | getSocket () |
virtual bool | isConnected () |
virtual void | setOutputStream (ostream *strm) |
virtual ostream * | getOutputStream () |
virtual void | brokenPipe () |
Protected Member Functions | |
void | writeBuffer (const string &buffer) |
int | readBuffer (char *inBuff) |
int | readBufferNonBlocking (char *inBuff) |
Protected Attributes | |
Socket * | _mySock |
ostream * | _out |
bool | _brokenPipe |
PPTServer::PPTServer | ( | ServerHandler * | handler, | |
SocketListener * | listener, | |||
bool | isSecure | |||
) |
PPTServer::~PPTServer | ( | ) | [virtual] |
virtual void Connection::brokenPipe | ( | ) | [inline, virtual, inherited] |
void PPTServer::closeConnection | ( | ) | [virtual] |
Implements PPTConnection.
void PPTServer::dump | ( | ostream & | strm | ) | const [virtual] |
dumps information about this object
Displays the pointer value of this instance
strm | C++ i/o stream to dump the information to |
Reimplemented from PPTConnection.
virtual ostream* Connection::getOutputStream | ( | ) | [inline, virtual, inherited] |
virtual Socket* Connection::getSocket | ( | ) | [inline, virtual, inherited] |
void PPTServer::initConnection | ( | ) | [virtual] |
Using the info passed into the SocketLister, wait for an inbound request (see SocketListener::accept()). When one is found, do the welcome message stuff (welcomeClient()) and then pass this
to the handler's handle
method. Note that this
is a pointer to a PPTServer which is a kind of Connection.
Implements PPTConnection.
virtual bool Connection::isConnected | ( | ) | [inline, virtual, inherited] |
Here is the call graph for this function:
int PPTConnection::readBuffer | ( | char * | inBuff | ) | [protected, inherited] |
int PPTConnection::readBufferNonBlocking | ( | char * | inBuff | ) | [protected, inherited] |
bool PPTConnection::receive | ( | ostream * | strm = 0 |
) | [virtual, inherited] |
Implements Connection.
void PPTConnection::send | ( | const string & | buffer | ) | [virtual, inherited] |
Implements Connection.
void PPTConnection::sendExit | ( | ) | [virtual, inherited] |
Implements Connection.
virtual void Connection::setOutputStream | ( | ostream * | strm | ) | [inline, virtual, inherited] |
void PPTConnection::writeBuffer | ( | const string & | buffer | ) | [protected, inherited] |
bool Connection::_brokenPipe [protected, inherited] |
Socket* Connection::_mySock [protected, inherited] |
ostream* Connection::_out [protected, inherited] |