Aschen / DomainSocket

Client - Server communication using unix domain socket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DomainSocket

Server - Client communication using unix domain socket

Functionnality

DomainSocket class provide an abstraction of Unix Domain socket. You can create server socket and client socket to communicate. There is a Daemon class and a Sender class (Server and Client) for an example of usage.

Example

You can compile the example (c++11 required for the for loop) and test by yourself. The server provided is just a basic echo server.

make
./server my_socket &
./client my_socket "This is a test message"
This is a test message : Sended to server !
Server response : This is a test message

About

Client - Server communication using unix domain socket

License:The Unlicense


Languages

Language:C++ 96.2%Language:Makefile 3.8%