Skip to content

maxDcb/libSocketHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

libSocketHandler

A small cross-platform C++14 library providing a TCP client and multi-connection server for Linux and Windows.

Features

  • SocketTunnelClient to connect to a remote host, send data and receive replies.
  • SocketServer accepts multiple client connections concurrently and exposes per-connection tunnels.
  • Utility functions for safe send/receive operations.

Building

mkdir build && cd build
cmake ..
cmake --build .

Basic usage

#include "SocketServer.hpp"
#include "SocketClient.hpp"

SocketServer server(8080);
server.launch();

SocketTunnelClient client;
client.init("127.0.0.1", 8080);
std::string reply;
client.process("hello", reply);

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published