Skip to content

A simple cross-platform socket library for C++

License

Notifications You must be signed in to change notification settings

markaren/SimpleSocket

Repository files navigation

SimpleSocket

A simple cross-platform communication library for C++ (no external dependencies) for education and hobby usage.

Supports:

  • UDP
  • TCP/IP
  • Unix Domain Sockets
  • WebSocket
  • Modbus [TCP]
  • Pipes [windows]

NOT for use in production.

Downstream usage with CMake FetchContent

include(FetchContent)
set(SIMPLE_SOCKET_BUILD_TESTS OFF)
FetchContent_Declare(
        SimpleSocket
        GIT_REPOSITORY https://github.com/markaren/SimpleSocket.git
        GIT_TAG tag_or_commit_hash
)
FetchContent_MakeAvailable(SimpleSocket)

target_link_libraries(some_target PRIVATE simple_socket)