A simple socket wrapper for C++.