OpenTTD Source: MockNetworkSocketHandler Class Reference

OpenTTD Source 15.3

Public Member Functions
MockNetworkSocketHandler Class Reference
Inheritance diagram for MockNetworkSocketHandler:

## Public Member Functions
| MockNetworkSocketHandler (std::unique_ptr< NetworkEncryptionHandler > &&receive={}, std::unique_ptr< NetworkEncryptionHandler > &&send={})
Public Member Functions inherited from NetworkSocketHandler
| NetworkSocketHandler ()=default
| Create a new unbound socket.
virtual | ~NetworkSocketHandler ()=default
| Close the socket when destructing the socket handler.
void | MarkClosed ()
| Mark the connection as closed.
bool | HasClientQuit () const
| Whether the current client connected to the socket has quit.
void | Reopen ()
| Reopen the socket so we can send/receive stuff again.

## Additional Inherited Members
Protected Attributes inherited from NetworkSocketHandler
std::unique_ptr< class NetworkEncryptionHandler > | receive_encryption_handler = nullptr
| The handler for decrypting received packets.
std::unique_ptr< class NetworkEncryptionHandler > | send_encryption_handler = nullptr
| The handler for encrypting sent packets.

## Detailed Description

Definition at line 25 of file test_network_crypto.cpp.

## Constructor & Destructor Documentation

## ◆ MockNetworkSocketHandler()

MockNetworkSocketHandler::MockNetworkSocketHandler | ( | std::unique_ptr< NetworkEncryptionHandler > && | receive = `{}`,
|  | std::unique_ptr< NetworkEncryptionHandler > && | send = `{}`
| ) |  |
| inline

Definition at line 27 of file test_network_crypto.cpp.

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

- src/tests/test_network_crypto.cpp