Class managing a TCP stream of messages.
More...
#include <Connection.h>
|
|
void | ConnectionClosed () |
| | Signal emitted when the remote host closed the connection.
|
| |
| void | Error (const std::string &error) |
| | Signal emitted when an error occurred in the connection. More...
|
| |
| void | ReceivedMessage (const QByteArray &message) |
| | Signal emitted when a message is received over the connection. More...
|
| |
|
| | Connection (QTcpSocket *socket, QObject *parent=0) |
| | Constructor. More...
|
| |
|
virtual | ~Connection () |
| | Destructor, closes the connection.
|
| |
|
std::string | GetPeerAddress () const |
| |
|
int | GetPeerPort () const |
| |
|
bool | IsConnected () |
| | Check if still connected.
|
| |
Class managing a TCP stream of messages.
Definition at line 31 of file Connection.h.
| SimPT_Parex::Connection::Connection |
( |
QTcpSocket * |
socket, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Constructor.
- Parameters
-
| socket | The connected TCP socket of this connection |
| parent | The parent of this QObject |
Definition at line 31 of file Connection.cpp.
| void SimPT_Parex::Connection::Error |
( |
const std::string & |
error | ) |
|
|
signal |
Signal emitted when an error occurred in the connection.
- Parameters
-
| void SimPT_Parex::Connection::ReceivedMessage |
( |
const QByteArray & |
message | ) |
|
|
signal |
Signal emitted when a message is received over the connection.
- Parameters
-
| message | The received message |
| void SimPT_Parex::Connection::SendMessage |
( |
const QByteArray & |
message | ) |
|
|
slot |
The documentation for this class was generated from the following files: