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
23 const std::string & _senderIP,
24 const std::string & _receiverIP,
25 ot::MessageType _type,
26 const std::string & _message,
27 std::string & _response,
28 int _timeout = 3000,
29 bool _shutdownMessage = false,
30 bool _createLogMessage = true
31 );
32
39 const std::string & _senderIP,
40 const std::string & _receiverIP,
41 ot::MessageType _type,
42 const std::string & _message,
43 int _timeout = 3000
44 );
45 }
46}
#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)
Will send the provided message to the microservice framework. The massage will be send asynchronously...
Definition msg.cpp:248
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:47
Definition Connector.h:8
MessageType
The message types describes how a message should be delivered.
Definition CommunicationTypes.h:10