Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 939 Bytes

README.md

File metadata and controls

29 lines (26 loc) · 939 Bytes

Socket Manager

C++ abstraction over linux socket system calls.

Getting Started

Clone the repo

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

Build

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

Cross-Compilation

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.