Logo Search packages:      
Sourcecode: poco version File versions  Download package

DialogServer Class Reference

#include <DialogServer.h>

Inheritance diagram for DialogServer:

Poco::Runnable

List of all members.


Detailed Description

A server for testing FTPClientSession and friends.

Definition at line 48 of file DialogServer.h.


Public Member Functions

void addResponse (const std::string &response)
 Returns the last command received by the server.
void clearCommands ()
 Sets the next response returned by the server.
void clearResponses ()
 Clears all commands.
 DialogServer (bool acceptCommands=true)
const std::string & lastCommand () const
 Does the work.
const std::vector< std::string > & lastCommands () const
void log (bool flag)
 Clears all responses.
std::string popCommand ()
 Returns the last command received by the server.
std::string popCommandWait ()
 Pops the next command from the list of received commands.
Poco::UInt16 port () const
 Destroys the DialogServer.
void run ()
 ~DialogServer ()
 Creates the DialogServer.

Private Attributes

bool _acceptCommands
std::vector< std::string > _lastCommands
bool _log
Poco::FastMutex _mutex
std::vector< std::string > _nextResponses
Poco::Event _ready
Poco::Net::ServerSocket _socket
 Enables or disables logging to stdout.
bool _stop
Poco::Thread _thread

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

Generated by  Doxygen 1.6.0   Back to index