Classes in C++ to work with Files and Socket