A lib can make net connection easier!
(support linux now!)
-
Clone this project in to your project
git clone https://github.com/lmx0125/LCNET.git
-
Include the head file like "net.h"
#include "net.h"
other modules like p2p needs other head file
#include "p2p/p2p.h"
If you are using visual studio or etc., you may link ws2_32.lib
- Build it
use msvc and g++ or etc. to build it
(g++ needs to add all cpp files by your self)