#include <SocketProxy.h>


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. | |
| void | dropClientData (bool drop=true) |
| Simulate lost packets, drop data from client. | |
| void | dropServerData (bool drop=true) |
| Simulate lost packets, drop data from server. | |
| 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().
| void SocketProxy::close | ( | ) | [inline] |
Simulate a network disconnect.
1.5.5