OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
dllmain.cpp File Reference

Functions

BOOL APIENTRY DllMain (HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 
void sessionServiceHealthChecker (std::string _sessionServiceURL)
 
void mainApplicationThread (std::string _websocketIp, unsigned int _websocketPort, std::string _relayUrl)
 
 _declspec (dllexport) int init(const char *_localDirectoryServiceURL
 
 catch (const std::exception &e)
 
 catch (...)
 
 strcpy (retval, retVal.toStdString().c_str())
 
 strcpy (dataCopy, json)
 
 strcpy (senderIPCopy, senderIP)
 

Variables

bool g_appStartFailed { false }
 
bool g_appStartCompleted { false }
 
std::mutex g_appStartMutex
 
const char * _ownIP
 
const char const char * _websocketIP
 
const char const char const char * _sessionServiceIP
 
const char * senderIP
 
 try
 
char * retval = new char[retVal.length() + 1]
 
char * senderIPCopy = new char[strlen(senderIP) + 1]
 

Function Documentation

◆ _declspec()

_declspec ( dllexport ) const

◆ catch() [1/2]

catch ( ...)

◆ catch() [2/2]

catch ( const std::exception & e)

◆ DllMain()

BOOL APIENTRY DllMain ( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved )

◆ mainApplicationThread()

void mainApplicationThread ( std::string _websocketIp,
unsigned int _websocketPort,
std::string _relayUrl )

◆ sessionServiceHealthChecker()

void sessionServiceHealthChecker ( std::string _sessionServiceURL)

◆ strcpy() [1/3]

strcpy ( dataCopy ,
json  )

◆ strcpy() [2/3]

strcpy ( retval ,
retVal. toStdString).c_str( )

◆ strcpy() [3/3]

strcpy ( senderIPCopy ,
senderIP  )

Variable Documentation

◆ _ownIP

const char* _ownIP

◆ _sessionServiceIP

const char const char const char* _sessionServiceIP

◆ _websocketIP

const char const char* _websocketIP

◆ g_appStartCompleted

bool g_appStartCompleted { false }

◆ g_appStartFailed

bool g_appStartFailed { false }

◆ g_appStartMutex

std::mutex g_appStartMutex

◆ retval

return retval = new char[retVal.length() + 1]

◆ senderIP

const char * senderIP
Initial value:
{
QString retVal
char * retVal
Definition dllmain.cpp:43

◆ senderIPCopy

char* senderIPCopy = new char[strlen(senderIP) + 1]

◆ try

try
Initial value:
{
QMetaObject::invokeMethod(&SocketServer::instance(), "performAction",
Qt::DirectConnection, Q_RETURN_ARG(QString, retVal), Q_ARG(const char*, json), Q_ARG(const char*, senderIP))
const char * senderIP
Definition dllmain.cpp:205
static SocketServer & instance(void)
Definition SocketServer.cpp:24