C++ abstraction over linux socket system calls.
Clone the repo into your code base as a gitmodule or git repo.
To clone as a git repo:
git clone https://github.com/AktugHakan/socket-manager.git
Socket Manager library has its built-in makefile
In the library directory run
make
to compile the library. When compilation is successful, libSockets.a
file is generated in the libraries main folder.
You have to give the libSockets.a
file to your linker. Add the following arguments to your compiler flags
-L<library_path> -lSockets
Built-in Makefile also supports cross-compiling. To cross-compile the library:
make CROSS_COMPILE=<compiler_prefix>
for example, if your cross-compiler is arm-linux-gnueabihf-gcc
you should give arm-linux-gnueabihf-
as compiler prefix argument.