trikRuntime
trikTelemetry::TrikTelemetry Class Reference

TrikTelemetry server provides an interface for getting information about ports configuration and sensors data of a brick. More...

#include <trikTelemetry.h>

Inheritance diagram for trikTelemetry::TrikTelemetry:
Collaboration diagram for trikTelemetry::TrikTelemetry:

Public Member Functions

 TrikTelemetry (trikControl::BrickInterface &brick)
 Constructor. More...
 
- Public Member Functions inherited from trikNetwork::TrikServer
 TrikServer (const std::function< Connection *()> &connectionFactory)
 Constructor. More...
 
 ~TrikServer () override
 
int activeConnections () const
 Returns number of connections currently opened. More...
 
Q_INVOKABLE void startServer (quint16 port)
 Starts listening given port on all network interfaces. More...
 

Additional Inherited Members

- Public Slots inherited from trikNetwork::TrikServer
void sendMessage (const QString &message)
 Broadcasts message across all opened connections. More...
 
- Signals inherited from trikNetwork::TrikServer
void connected ()
 Emitted when we get the first connection established. More...
 
void disconnected ()
 Emitted when the last connection closes. More...
 
- Protected Member Functions inherited from trikNetwork::TrikServer
void incomingConnection (qintptr socketDescriptor) override
 
void startConnection (Connection *connectionWorker)
 Launches given connection in a separate thread. Takes ownership over connectionWorker object. More...
 
Connectionconnection (const QHostAddress &ip, int port) const
 Searches connection to given IP and port in a list of all open connections. More...
 
Connectionconnection (const QHostAddress &ip) const
 Searches connection to given IP and any port in a list of all open connections. More...
 

Detailed Description

TrikTelemetry server provides an interface for getting information about ports configuration and sensors data of a brick.

TrikTelemetry class creates for each client a new Connection which runs in a separate thread and serves clients' requests for ports and sensors data.

Constructor & Destructor Documentation

TrikTelemetry::TrikTelemetry ( trikControl::BrickInterface brick)
explicit

Constructor.

Parameters
brick- a Brick used to respond to clients

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