VEngineer
asked on
Non-Blocking Winsock Sockets
How can I create a non-blocking socket in VC++ using Winsock (no MFC)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
u_long argp = 1L;
int nRet;
SOCKET s;
.
s = socket(PF_INET,SOCK_DGRAM,
if(s==INVALID_SOCKET) // report error
// Make Socket Non-Blocking
nRet = ioctlsocket(s,FIONBIO,(u_l
if(nRet == SOCKET_ERROR) // report error