simple c++ networking wrapper