Use const & for shared_ptr since incresing reference is
not needed on those context.
Added some basic class for networking.