https://github.com/markaren/simplesocket
A simple cross-platform socket library for C++
https://github.com/markaren/simplesocket
cpp sockets tcp-ip udp winsock2
Last synced: about 1 year ago
JSON representation
A simple cross-platform socket library for C++
- Host: GitHub
- URL: https://github.com/markaren/simplesocket
- Owner: markaren
- License: mit
- Created: 2024-05-01T22:05:41.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T12:10:39.000Z (about 2 years ago)
- Last Synced: 2024-05-22T13:32:54.044Z (about 2 years ago)
- Topics: cpp, sockets, tcp-ip, udp, winsock2
- Language: C++
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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]
### Downstream usage with CMake FetchContent
```cmake
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)
```