#include <setup_common.h>
Definition at line 253 of file setup_common.h.
◆ SocketTestingSetup()
| SocketTestingSetup::SocketTestingSetup |
( |
| ) |
|
|
explicit |
◆ ~SocketTestingSetup()
| SocketTestingSetup::~SocketTestingSetup |
( |
| ) |
|
◆ ConnectClient()
template<typename
T = DynSock>
| std::shared_ptr< typename T::Pipes > SocketTestingSetup::ConnectClient |
( |
std::span< const std::byte > |
data | ) |
|
|
inline |
Connect to the socket with a mock client and send pre-loaded data.
Returns the I/O pipes from the mock client so we can read response data sent to it. Template parameter selects the socket type: DynSock by default.
Definition at line 265 of file setup_common.h.
◆ m_accepted_sockets
Queue of connected sockets returned by listening socket (represents network interface)
Definition at line 278 of file setup_common.h.
◆ m_create_sock_orig
| decltype(CreateSock) SocketTestingSetup::m_create_sock_orig |
|
private |
Save the original value of CreateSock here and restore it when the test ends.
Definition at line 275 of file setup_common.h.
The documentation for this class was generated from the following files: