|
Eile Mit Weile
|
Thread that listens for responses from the server. More...
#include <ResponseListenerThread.hpp>
Public Member Functions | |
| ResponseListenerThread (sockpp::tcp_connector *connection) | |
| ~ResponseListenerThread () | |
Protected Member Functions | |
| virtual ExitCode | Entry () |
Private Member Functions | |
| void | OutputError (std::string title, std::string message) |
Private Attributes | |
| sockpp::tcp_connector * | _connection |
Thread that listens for responses from the server.
This class is derived from wxThread, which is wxWidgets' thread class. It is responsible for listening for responses from the server and calling ClientNetworkManager::ParseResponse on the received messages.
| ResponseListenerThread::ResponseListenerThread | ( | sockpp::tcp_connector * | connection | ) |
Initializes the ResponseListenerThread with the given connection.
| ResponseListenerThread::~ResponseListenerThread | ( | ) |
shuts down the _connection.
|
protectedvirtual |
The main method of the thread. It listens for responses from the server and calls ClientNetworkManager::ParseResponse on the received messages.
|
private |
Outputs the given error message to the user. See GameController::ShowError.
|
private |
The tcp connection to the server.