simple tcp network library in c++