Roboid Control for C++
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Passer::RoboidControl::RemoteParticipant Class Reference

Detailed Description

A reference to a participant, possibly on a remote location.

#include <RemoteParticipant.h>

Inheritance diagram for Passer::RoboidControl::RemoteParticipant:
Passer::RoboidControl::Participant Passer::RoboidControl::SiteServer

Public Member Functions

 RemoteParticipant ()
 The default constructor.
 
 RemoteParticipant (const char *ipAddress, int port)
 Create a new participant.
 
ThingGet (unsigned char networkId, unsigned char thingId)
 Get a thing with the give ids.
 
void Add (Thing *thing)
 Add a new thing for this participant.
 
void Remove (Thing *thing)
 Remove a thing fror this participant.
 

Public Attributes

const char * ipAddress = "0.0.0.0"
 The internet address of the participant.
 
int port = 0
 The UDP port on which the participant can be reached.
 
unsigned char networkId = 0
 The network ID of the participant.
 

Protected Attributes

std::list< Thing * > things
 The things reported by this participant.
 

Constructor & Destructor Documentation

◆ RemoteParticipant()

Passer::RoboidControl::RemoteParticipant::RemoteParticipant ( const char *  ipAddress,
int  port 
)

Create a new participant.

Parameters
ipAddressThe IP address of the participant
portThe UDP port of the participant

Member Function Documentation

◆ Get()

Thing * Passer::RoboidControl::RemoteParticipant::Get ( unsigned char  networkId,
unsigned char  thingId 
)

Get a thing with the give ids.

Parameters
networkIdThe network ID of the thing
thingIdThe ID of the thing
Returns
The thing when it is found, nullptr in other cases

◆ Add()

void Passer::RoboidControl::RemoteParticipant::Add ( Thing thing)

Add a new thing for this participant.

Parameters
thingThe thing to add

◆ Remove()

void Passer::RoboidControl::RemoteParticipant::Remove ( Thing thing)

Remove a thing fror this participant.

Parameters
thingThe thing to remove