Sockets learning [Linux, C++]