GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - markaren/SimpleSocket: A simple cross-platform socket library for C++ (no external dependencies)

BranchesTags
Open more actions menu

Latest commit

 

History

130 Commits
130 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cmake
cmake
 
 
include/simple_socket
include/simple_socket
 
 
src
src
 
 
tests
tests
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
vcpkg.json
vcpkg.json
 
 

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
  • WebSockets
  • HTTP fetcher
  • Modbus [TCP]
  • MQTT [TCP, WebSockets]

SimpleSocket supports TLS via openssl. This feature is optional and can be enabled at build time and allows use of TLS for TCP/IP connections, including Secure WebSockets (wss://), MQTT and https:// support in the HTTP fetcher.

Downstream usage with CMake FetchContent

include(FetchContent)
set(SIMPLE_SOCKET_BUILD_TESTS OFF)
set(SIMPLE_SOCKET_WITH_TLS OFF/ON)
set(SIMPLE_SOCKET_WITH_MQTT ON/OFF)
set(SIMPLE_SOCKET_WITH_MODBUS ON/OFF)
set(SIMPLE_SOCKET_WITH_MEMORY ON/OFF)
set(SIMPLE_SOCKET_WITH_WEBSOCKETS ON/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)

About

A simple cross-platform socket library for C++ (no external dependencies)

Topics

cpphttp-clientmodbus-tcpmqtt-clientsocketstcp-iptlsudpunix-domain-socketswebsocket-clientwebsocket-serverwinsock2

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

2 watching

Forks

1 fork
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.