OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::msg Namespace Reference

Functions

OT_COMMUNICATION_API_EXPORT bool send (const std::string &_senderIP, const std::string &_receiverIP, ot::MessageType _type, const std::string &_message, std::string &_response, int _timeout=3000, bool _shutdownMessage=false, bool _createLogMessage=true)
 Will send the provided message to the microservice framework. Returns true if succeeded.
 
OT_COMMUNICATION_API_EXPORT void sendAsync (const std::string &_senderIP, const std::string &_receiverIP, ot::MessageType _type, const std::string &_message, int _timeout=3000, bool _createLogMessage=true)
 Will send the provided message to the microservice framework. The massage will be send asynchronously.
 

Function Documentation

◆ send()

bool ot::msg::send ( const std::string & _senderIP,
const std::string & _receiverIP,
ot::MessageType _type,
const std::string & _message,
std::string & _response,
int _timeout = 3000,
bool _shutdownMessage = false,
bool _createLogMessage = true )

Will send the provided message to the microservice framework. Returns true if succeeded.

Parameters
_senderIPThe sender IP address
_receiverIPThe receiver IP address
_messageThe message to send
_responseHere the response will be written to

◆ sendAsync()

void ot::msg::sendAsync ( const std::string & _senderIP,
const std::string & _receiverIP,
ot::MessageType _type,
const std::string & _message,
int _timeout = 3000,
bool _createLogMessage = true )

Will send the provided message to the microservice framework. The massage will be send asynchronously.

Parameters
_senderIPThe sender IP address
_receiverIPThe receiver IP address
_messageThe message to send
_responseHere the response will be written to