Included poll() server implementation