OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Msg.h
Go to the documentation of this file.
1/*
2 * msg.h
3 *
4 * Created on: January 03, 2021
5 * Author: Alexander Kuester
6 * Copyright (c) 2020 openTwin
7 */
8
9#pragma once
10
13
14 // C++ header
15#include <string>
16
17namespace ot {
18 namespace msg {
19
25 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);
26
32 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);
33 }
34}
#define OT_COMMUNICATION_API_EXPORT
Definition CommunicationAPIExport.h:6
const char * _senderIP
Definition dllmain.cpp:39
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...
Definition msg.cpp:204
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.
Definition msg.cpp:48
Definition Connector.h:8
MessageType
The message types describes how a message should be delivered.
Definition CommunicationTypes.h:10