in reply to (tye)Re: Win32 Nonblocking Sockets
in thread Win32 Nonblocking Sockets
Note that IOCTL == ioctl under unix and == ioctlsocket under windows.int on = 1; int error = IOCTL(server_socket, FIONBIO, &on); if (error < 0) die("Couldn't set non-blocking");
I don't know whether this is useful directly from perl under windows or not but it could certainly go in the xs module.
Non blocking sockets are OK under windows, but it is practically impossible to make anything else non blocking - you have to get into overlapped IO etc shudder!
|
|---|