I am working on a basic server which may use poll or epoll, but I cant seem to find any info for if: poll or epoll will resume where the underlying function left off.
For example: if I had a function which had operations to do after a blocking call like recv(), and I called poll on the recv(), when the recv call finishes, can the outer function just resume operation directly after the recv(), or does there need to be some kind of variable which holds where the function left off, which needs to be called again?