Code Monkey home page Code Monkey logo

Comments (7)

X-Ryl669 avatar X-Ryl669 commented on August 29, 2024

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.

X-Ryl669 avatar X-Ryl669 commented on August 29, 2024

The code will build and work correctly with MQTTOnlyBSDSocket set to 1, I meant.

from emqtt5.

juhda avatar juhda commented on August 29, 2024

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.

X-Ryl669 avatar X-Ryl669 commented on August 29, 2024

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.

juhda avatar juhda commented on August 29, 2024

No need for SSL (currently).

from emqtt5.

X-Ryl669 avatar X-Ryl669 commented on August 29, 2024

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.

juhda avatar juhda commented on August 29, 2024

Looks good. Thank you very much!

from emqtt5.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.