C++ Lightweight Socket Wrapper