basic c++ network library