Workspace 6.21.5
|
Serves TCP messages which are listened to for by the WorkspaceWeb object.
#include <Workspace/Application/Web/tcpmessageserver.h>
Inherits QObject.
Public Slots | |
bool | checkForMessages (int waitTime=0) |
void | onNewConnection () |
void | onReadyReadMessage (CSIRO::DataExecution::TcpMessage *msg, CSIRO::DataExecution::TcpMessageSocketAdapter *adapter) |
Public Member Functions | |
~TcpMessageServer () override | |
void | closeConnection (const QString &clientAddress, int clientPort) |
ServerTcpMessageHandler & | getMessageHandler () |
bool | listen (const QHostAddress &hostAddress, int port, bool asynchronous, NewConnectionCallback callback) |
bool | sendMessage (const QString &clientAddress, int clientPort, DataExecution::TcpMessage &message) |
bool | shutDown () |
Static Public Member Functions | |
static TcpMessageServer & | getInstance () |
Static Public Attributes | |
static const int | TIMEOUT = 10000 |
Protected Member Functions | |
TcpMessageServer () | |
|
override |
|
protected |
|
slot |
void closeConnection | ( | const QString & | clientAddress, |
int | clientPort | ||
) |
|
static |
|
inline |
bool listen | ( | const QHostAddress & | hostAddress, |
int | port, | ||
bool | asynchronous, | ||
NewConnectionCallback | callback | ||
) |
|
slot |
|
slot |
bool sendMessage | ( | const QString & | clientAddress, |
int | clientPort, | ||
DataExecution::TcpMessage & | message | ||
) |
bool shutDown | ( | ) |
|
static |