45 agent =
new Agent(
"telem",
"receive");
54 cout <<
"rx: " << mess.
adata << endl;
AgentMessage
Type of Agent Message. Types > 127 are binary.
Definition: agentclass.h:216
string adata
Definition: agentclass.h:276
uint16_t running()
Check if we're supposed to be running.
Definition: agentclass.cpp:391
static Agent * agent
ensure the Agent constructor creates only one instance per process
Definition: agent_001.cpp:45
Definition: agentclass.h:139
Storage for messages.
Definition: agentclass.h:272
cosmosstruc * cinfo
Definition: agentclass.h:346
int32_t readring(messstruc &message, AgentMessage type=Agent::AgentMessage::ALL, float waitsec=1., Where where=Where::TAIL, string proc="", string node="")
Check Ring for message.
Definition: agentclass.cpp:2395