libwebsockets/4.3.3

Canonical libwebsockets.org websocket library
Recipe info
2024-05-13

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libwebsockets/4.3.3

Using libwebsockets

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libwebsockets/4.3.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libwebsockets/4.3.3")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): Libwebsockets
  • CMake target name(s): websockets
  • _libwebsockets => websockets
    
  • pkg-config file name(s): libwebsockets_static.pc
  • _libwebsockets => libwebsockets_static.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(Libwebsockets REQUIRED)
# ...
target_link_libraries(YOUR_TARGET websockets)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libwebsockets homepage listed above:

#include "libwebsockets.h"
#include "libwebsockets/abstract/abstract.h"
#include "libwebsockets/abstract/protocols.h"
#include "libwebsockets/abstract/protocols/smtp.h"
#include "libwebsockets/abstract/transports.h"
#include "libwebsockets/abstract/transports/raw-skt.h"
#include "libwebsockets/abstract/transports/unit-test.h"
#include "libwebsockets/lws-adopt.h"
#include "libwebsockets/lws-async-dns.h"
#include "libwebsockets/lws-bb-i2c.h"
#include "libwebsockets/lws-bb-spi.h"
#include "libwebsockets/lws-button.h"
#include "libwebsockets/lws-cache-ttl.h"
#include "libwebsockets/lws-callbacks.h"
#include "libwebsockets/lws-cgi.h"
#include "libwebsockets/lws-client.h"
#include "libwebsockets/lws-conmon.h"
#include "libwebsockets/lws-context-vhost.h"
#include "libwebsockets/lws-cose.h"
#include "libwebsockets/lws-dbus.h"
#include "libwebsockets/lws-diskcache.h"
#include "libwebsockets/lws-display.h"
#include "libwebsockets/lws-dll2.h"
#include "libwebsockets/lws-dsh.h"
#include "libwebsockets/lws-eventlib-exports.h"
#include "libwebsockets/lws-fault-injection.h"
#include "libwebsockets/lws-freertos.h"
#include "libwebsockets/lws-fts.h"
#include "libwebsockets/lws-genaes.h"
#include "libwebsockets/lws-gencrypto.h"
#include "libwebsockets/lws-genec.h"
#include "libwebsockets/lws-genhash.h"
#include "libwebsockets/lws-genrsa.h"
#include "libwebsockets/lws-gpio.h"
#include "libwebsockets/lws-http.h"
#include "libwebsockets/lws-i2c.h"
#include "libwebsockets/lws-ili9341-spi.h"
#include "libwebsockets/lws-jose.h"
#include "libwebsockets/lws-jwe.h"
#include "libwebsockets/lws-jwk.h"
#include "libwebsockets/lws-jws.h"
#include "libwebsockets/lws-lecp.h"
#include "libwebsockets/lws-led.h"
#include "libwebsockets/lws-lejp.h"
#include "libwebsockets/lws-logs.h"
#include "libwebsockets/lws-lwsac.h"
#include "libwebsockets/lws-map.h"
#include "libwebsockets/lws-metrics.h"
#include "libwebsockets/lws-misc.h"
#include "libwebsockets/lws-mqtt.h"
#include "libwebsockets/lws-netdev.h"
#include "libwebsockets/lws-network-helper.h"
#include "libwebsockets/lws-optee.h"
#include "libwebsockets/lws-protocols-plugins.h"
#include "libwebsockets/lws-purify.h"
#include "libwebsockets/lws-pwm.h"
#include "libwebsockets/lws-retry.h"
#include "libwebsockets/lws-ring.h"
#include "libwebsockets/lws-secure-streams-client.h"
#include "libwebsockets/lws-secure-streams-policy.h"
#include "libwebsockets/lws-secure-streams.h"
#include "libwebsockets/lws-sequencer.h"
#include "libwebsockets/lws-service.h"
#include "libwebsockets/lws-settings.h"
#include "libwebsockets/lws-sha1-base64.h"
#include "libwebsockets/lws-smd.h"
#include "libwebsockets/lws-spa.h"
#include "libwebsockets/lws-spi.h"
#include "libwebsockets/lws-ssd1306-i2c.h"
#include "libwebsockets/lws-state.h"
#include "libwebsockets/lws-struct.h"
#include "libwebsockets/lws-system.h"
#include "libwebsockets/lws-test-sequencer.h"
#include "libwebsockets/lws-threadpool.h"
#include "libwebsockets/lws-timeout-timer.h"
#include "libwebsockets/lws-tls-sessions.h"
#include "libwebsockets/lws-tokenize.h"
#include "libwebsockets/lws-vfs.h"
#include "libwebsockets/lws-write.h"
#include "libwebsockets/lws-writeable.h"
#include "libwebsockets/lws-ws-close.h"
#include "libwebsockets/lws-ws-ext.h"
#include "libwebsockets/lws-ws-state.h"
#include "libwebsockets/lws-x509.h"
#include "lws_config.h"