Skip to content

C++ wrappers for the pthread, socket and semaphore library

License

Notifications You must be signed in to change notification settings

jprothwell/CPPWrappers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A C++ wrapper for the thread, semaphore and socket library etc..

Overview

This library is a C++ wrapper for BSD sockets, pthread and semaphore. I've test it on MacOS, but it should be working on Linux There are 3 Libraries:

System

contains the Thread class, Semaphore class and Mutex class, Time class, PRNG class and Prime number generator class

####Net

contains the TcpSocket, TcpServer, UdpSocket, HtmlRequest classes. There is also a HtmlParser

####Fs

contains methods for using the file system: File, BufferedInput BufferedOutput, ...

Documentation

Online documentation can be found here

Install

Dependencies

You need cmake in order to compile and install the libraries

Install instructions

To install the library go to the project directory and type de following:

	mkdir build
	cd build
	cmake ../
	sudo make && make install

Examples

Small examples are located in the Tests folder. Basicaly the libraries are easy to use, notice that for the Thread class you need to subclass it and override the run() method

TODO

Add Signals, ...

About

C++ wrappers for the pthread, socket and semaphore library

Resources

License

Stars

Watchers

Forks

Packages

No packages published