libnet--
Network library for C++
STILL IN DEVELOPMENT
Create servers, client, and the packets they send. Generic packet structure, client and server aren't tied to each other.
Github repository: http://github.com/axus/libnet--
Prerequisites
Install MSYS + MinGW.
TODO: Test under Linux.
Download source (via github)
git clone --depth 1 git://github.com/axus/libnet--.git
Build
cd libnet--
make
Install
make install
What was installed?
../lib
libnet--.a
../include/
netpacket.h
netbase.h
netserver.h
netclient.h
Example program
There is an example program, to make sure the library is working. It connects to google, sends an HTTP GET request. Then, it waits in a loop until 5 seconds have passed without an incoming message. If a message is received, it's printed to standard output.
cd libnet--/test_client
make
test_client www.google.com
Debugging
In the Makefile, DEBUG = on. Comment out this line to turn off debugging.
Define
DEBUG
Value
on
Description
"network.log" is written by programs using libnet--.
gdb test_client
run www.google.com