#include <SocketProxy.h>
Inheritance diagram for SocketProxy:
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 |
Used between client & local broker to simulate network failures.
SocketProxy::SocketProxy | ( | int | connectPort, | |
const std::string | host = "localhost" | |||
) | [inline] |
Connect to connectPort on host, start a forwarding thread.
Listen for connection on getPort().