C++ (or C) Tcp-server Resources