Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
EINPROGRESS
Edit
PageHistory
Diff
Info
LikePages
You are viewing an old revision of this page.
View the current version
.
!!!Operation in progress Some operations take a long time to execute, mostly because they involve talking to another host, which may have an exruciating long timeout on it. If you don't want to block you UI while performing this operation you can either use threads, or non blocking sockets. For instance, when doing a connect(2) on a nonblocking socket, it will immediately return [EINPROGRESS] to let you know that the operation is in progress, and when select(2) (or related interface) says that the socket is ready for reading, you can call connect(2) on it __again__ and have it return as it normally would if you had called it in a blocking manner. neat.
3 pages link to
EINPROGRESS
:
connect(2)
EALREADY
MSG_DONTWAIT