Server side mosquitto c++ implementation
Hi,
During last months, I've been working and testing some examples using mosquitto 1.2.3 with SSL properties enabled.
Now I have an aplication ( server side) that publish information with mosquitto_pub every "x" seconds. Before publish, I'm using connect function to connect to a mosquitto instance ( launched using terminal (mosquitto -c myConf -p -h ...).
My question is how can I start a mosquitto broker instance without using the command line ( mosquitto -c myConf.conf -p 8883 ... ) ? I want to use c++ code, in order to have, in the same "server side" , the mosquitto instance and the publisher methods ... And then be able to control the conections and new clients certificates with my c++ program...
My pseudo code :
//ubuntu terminal
mosquitto -c myConf.conf -p 8883 -h localhost -d -v ...
// server side code
MosquittoThread
{
pWebServer
pWebServer
pWebServer-
}
OnGameStart()
{
mp_
}
Thanks,
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Charlie F for more information if necessary.