cppserver/1.0.2.0

Ultra fast and low latency asynchronous socket server and client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution.
Recipe info
2023-04-27

Install
Add the following line to your conanfile.txt:
[requires]
cppserver/1.0.2.0

Using cppserver

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]
cppserver/1.0.2.0
[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("cppserver/1.0.2.0")

    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): cppserver
  • CMake target name(s): cppserver::cppserver
  • pkg-config file name(s): cppserver.pc

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

# ...
find_package(cppserver REQUIRED)
# ...
target_link_libraries(YOUR_TARGET cppserver::cppserver)

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

#include "server/asio/asio.h"
#include "server/asio/asio.inl"
#include "server/asio/memory.h"
#include "server/asio/memory.inl"
#include "server/asio/service.h"
#include "server/asio/ssl_client.h"
#include "server/asio/ssl_context.h"
#include "server/asio/ssl_server.h"
#include "server/asio/ssl_session.h"
#include "server/asio/tcp_client.h"
#include "server/asio/tcp_resolver.h"
#include "server/asio/tcp_server.h"
#include "server/asio/tcp_session.h"
#include "server/asio/timer.h"
#include "server/asio/udp_client.h"
#include "server/asio/udp_resolver.h"
#include "server/asio/udp_server.h"
#include "server/http/http.h"
#include "server/http/http_client.h"
#include "server/http/http_request.h"
#include "server/http/http_request.inl"
#include "server/http/http_response.h"
#include "server/http/http_response.inl"
#include "server/http/http_server.h"
#include "server/http/http_session.h"
#include "server/http/https_client.h"
#include "server/http/https_server.h"
#include "server/http/https_session.h"
#include "server/version.h"
#include "server/ws/ws.h"
#include "server/ws/ws_client.h"
#include "server/ws/ws_server.h"
#include "server/ws/ws_session.h"
#include "server/ws/wss_client.h"
#include "server/ws/wss_server.h"
#include "server/ws/wss_session.h"