network_server : add runLoop and function handler