Fixed the network example to work with std::function instead of the old clanlib callbacks