![]() |
Roboid Control for C++
|
A participant is device which can communicate with other participants.
#include <Participant.h>
Public Member Functions | |
Participant (int port) | |
Participant (const char *ipAddress, int port) | |
void | begin () |
virtual void | Update (unsigned long currentTimeMs=0) |
void | SendThingInfo (RemoteParticipant *remoteParticipant, Thing *thing) |
void | PublishThingInfo (Thing *thing) |
bool | Send (RemoteParticipant *remoteParticipant, IMessage *msg) |
bool | Publish (IMessage *msg) |
void | ReceiveData (unsigned char bufferSize, RemoteParticipant *remoteParticipant) |
Thing * | Get (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. | |
Protected Member Functions | |
void | SetupUDP (int localPort, const char *remoteIpAddress, int remotePort) |
Participant * | GetParticipant (const char *ipAddress, int port) |
Participant * | AddParticipant (const char *ipAddress, int port) |
void | ReceiveUDP () |
virtual void | Process (RemoteParticipant *sender, ParticipantMsg *msg) |
virtual void | Process (RemoteParticipant *sender, NetworkIdMsg *msg) |
virtual void | Process (RemoteParticipant *sender, InvestigateMsg *msg) |
virtual void | Process (RemoteParticipant *sender, ThingMsg *msg) |
virtual void | Process (RemoteParticipant *sender, NameMsg *msg) |
virtual void | Process (RemoteParticipant *sender, PoseMsg *msg) |
virtual void | Process (RemoteParticipant *sender, BinaryMsg *msg) |
Protected Attributes | |
std::list< Participant * > | senders |
unsigned long | nextPublishMe = 0 |
std::list< Thing * > | things |
The things reported by this participant. | |
|
inherited |
Get a thing with the give ids.
networkId | The network ID of the thing |
thingId | The ID of the thing |
|
inherited |
Add a new thing for this participant.
thing | The thing to add |
|
inherited |
Remove a thing fror this participant.
thing | The thing to remove |