SocketProxy Class Reference

A simple socket proxy that forwards to another socket. More...

#include <SocketProxy.h>

Inheritance diagram for SocketProxy:

Inheritance graph
[legend]
Collaboration diagram for SocketProxy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SocketProxy (int connectPort, const std::string host="localhost")
 Connect to connectPort on host, start a forwarding thread.
void close ()
 Simulate a network disconnect.
bool isClosed () const
uint16_t getPort () const

Detailed Description

A simple socket proxy that forwards to another socket.

Used between client & local broker to simulate network failures.


Constructor & Destructor Documentation

SocketProxy::SocketProxy ( int  connectPort,
const std::string  host = "localhost" 
) [inline]

Connect to connectPort on host, start a forwarding thread.

Listen for connection on getPort().


The documentation for this class was generated from the following file:
Generated on Thu Apr 10 11:08:31 2008 for Qpid by  doxygen 1.4.7