added poll method with timeout.
asyncsrv guide example.