1 #ifndef SIMPT_PAREX_CONNECTION_H_
2 #define SIMPT_PAREX_CONNECTION_H_
53 std::string GetPeerAddress()
const;
55 int GetPeerPort()
const ;
83 void Error(
const std::string &error);
94 void HandleError(QAbstractSocket::SocketError socketError);
103 QTcpSocket *m_socket;
109 #endif // end-of-include-guard
void SendMessage(const QByteArray &message)
Sends a message over the connection.
bool IsConnected()
Check if still connected.
void ReceivedMessage(const QByteArray &message)
Signal emitted when a message is received over the connection.
void Error(const std::string &error)
Signal emitted when an error occurred in the connection.
Connection(QTcpSocket *socket, QObject *parent=0)
Constructor.
void ConnectionClosed()
Signal emitted when the remote host closed the connection.
Class managing a TCP stream of messages.
Namespace for SimPT parameter explorer package.
virtual ~Connection()
Destructor, closes the connection.
see the online Qt documentation