defuze.me  Client
Public Slots | Signals | Public Member Functions | Friends
Network::RemoteSock Class Reference

The RemoteSock class represents a remote connection from the mobile application. More...

#include <remotesock.hpp>

List of all members.

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
RemoteEventnewEvent (const QString &name)
 Generate a new event linked to this client.
void sendEvent (RemoteEvent *event)
 Send a prepared event.
const ParsereventParser () const
 Return correct event parser.
const QString & getToken () const
const QString & getDevice () const
const QString & getVersion () const

Friends

class Doorman
class RemoteEvent

Detailed Description

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.


The documentation for this class was generated from the following files: