trantor/1.5.16

a non-blocking I/O tcp network lib based on c++14/17
Recipe info
2024-01-19

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
trantor/1.5.16

Using trantor

Note

If you are new with Conan, we recommend to read the section how to consume packages.

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]
trantor/1.5.16
[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("trantor/1.5.16")

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

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

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

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

#include "trantor/exports.h"
#include "trantor/net/AsyncStream.h"
#include "trantor/net/Certificate.h"
#include "trantor/net/Channel.h"
#include "trantor/net/EventLoop.h"
#include "trantor/net/EventLoopThread.h"
#include "trantor/net/EventLoopThreadPool.h"
#include "trantor/net/InetAddress.h"
#include "trantor/net/Resolver.h"
#include "trantor/net/TLSPolicy.h"
#include "trantor/net/TcpClient.h"
#include "trantor/net/TcpConnection.h"
#include "trantor/net/TcpServer.h"
#include "trantor/net/callbacks.h"
#include "trantor/utils/AsyncFileLogger.h"
#include "trantor/utils/ConcurrentTaskQueue.h"
#include "trantor/utils/Date.h"
#include "trantor/utils/Funcs.h"
#include "trantor/utils/LockFreeQueue.h"
#include "trantor/utils/LogStream.h"
#include "trantor/utils/Logger.h"
#include "trantor/utils/MsgBuffer.h"
#include "trantor/utils/NonCopyable.h"
#include "trantor/utils/ObjectPool.h"
#include "trantor/utils/SerialTaskQueue.h"
#include "trantor/utils/TaskQueue.h"
#include "trantor/utils/TimingWheel.h"
#include "trantor/utils/Utilities.h"