defuze.me
Client
|
The RemoteSock class represents a remote connection from the mobile application. More...
#include <remotesock.hpp>
Public Slots | |
void | receive () |
This slot is called when data is received. | |
Signals | |
void | receiveEvent (const RemoteEvent &) |
This signal is emited when a new event is received and parsed. | |
Public Member Functions | |
RemoteSock (QTcpSocket *sock) | |
QString | ip () const |
int | port () const |
RemoteEvent & | newEvent (const QString &name) |
Generate a new event linked to this client. | |
void | sendEvent (RemoteEvent *event) |
Send a prepared event. | |
const Parser & | eventParser () const |
Return correct event parser. | |
const QString & | getToken () const |
const QString & | getDevice () const |
const QString & | getVersion () const |
Friends | |
class | Doorman |
class | RemoteEvent |
The RemoteSock class represents a remote connection from the mobile application.
It will handle json events formating & automatic message id attribution. It will also protect the socket from injections and bad formatted data.
Definition at line 30 of file remotesock.hpp.