add Serve method

add Serve method to serve with a net.Listener