1 #ifndef CscMessagingManager_H_
2 #define CscMessagingManager_H_
19 #define CONSCIENCE_ERROR_MESSAGE "__CSC_COM_ERROR"
23 using std::remove, std::mutex, std::recursive_mutex, std::thread;
38 void sendUdp(
const string &message,
const string &ip,
CscMessagingPort port);
44 const string &getUid()
const;
45 optional<CscMessagingPort> getUdpServerPort();
52 static constexpr
unsigned char ConscienceFastMessagePrefix[] =
53 {
'z',
'z',
'_',
'C',
's',
'c',
'F',
'a',
's',
't',
'_',
'z',
'z'};
73 ptr<bool> destroyed = newptr<bool>(
false);
88 void sendMessageBytes(vector<unsigned char> *data,
ptr<CscMessagingRequestContext> context, optional<fs::path> downloadResponseToPath = {}, optional<
function<
void(
float progress)>> onDownloadProgress = {}, CscMessageSender *sender =
nullptr);
91 unique_ptr<CscLogger>
logger;