Comments (7)
Yes that's true. Those files are part of a very large networking multi-protocol library that we use internally for our needs and it's not open source (yet ?).
You have to define MQTTOnlyBSDSocket
to 1
. If you need TLS, you'll need to download and use MbedTLS
library in that case. For an example code, you have the related repository or the fully featured MQTTc
client in this repository.
from emqtt5.
The code will build and work correctly with MQTTOnlyBSDSocket
set to 1
, I meant.
from emqtt5.
I understand. Thank you for the clarification.
We have a scenario when our application is compiled with Visual Studio, in which case BSD sockets are not available. That's why I started to look around in the code and tried to change the macro; I hoped it might help.
Is there any straightforward solution to build with Visual Studio?
from emqtt5.
Do you need SSL ?
Currently, I can easily add the missing Socket.hpp
file but SSLSocket.hpp
requires so much dependencies (mainly OpenSSL wrappers but also all crypto code that have nothing to do with this project).
I'm sorry I'm not using Windows anymore since many years. I know the Socket
class is cross platform, but I don't know for SSLSocket
status.
from emqtt5.
No need for SSL (currently).
from emqtt5.
Ok, should be committed now. Please try again. You'll have to run ccmake
(or cmake -DCROSSPLATFORM_SOCKET=ON
) to enable cross platform socket code before rebuilding.
There is no cross platform SSL code currently, and I don't intend to re-write one.
The cross platform socket code is not exported upon library installation right now as I'm using the code in the tests
subfolder, so you'll probably need to copy the missing files around if you intend to embed this code on windows.
from emqtt5.
Looks good. Thank you very much!
from emqtt5.
Related Issues (18)
- Problems including the library HOT 11
- Porting to Renesas MCU without OS HOT 1
- Publisher and Subscriber in the same client HOT 12
- execinfo.h does not exist in alpine linux 3.19 HOT 2
- read properties of received packet HOT 9
- readFrom() return BadData for 4-byte buffer HOT 2
- Linux specific int types HOT 3
- Adding properties to PUBLISH packet. HOT 4
- missing functions getEthernetRate and getWIFIRate HOT 9
- Why there is no release version ? HOT 3
- How to connect without ClientID? HOT 1
- Calling ConnectTo multiple times if the connection is not successful is not working HOT 2
- eMQTT5 does not install at all HOT 1
- There seems no definition of Platform::free and so on for macOS. HOT 18
- Clean source dependency for readability HOT 6
- No support for unsubscribing HOT 4
- Stuck in eventLoop HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqtt5.