+
+#else
+ // If imode !=0, non-blocking mode is enabled.
+ u_long mode=1;
+ if (ioctlsocket(sockin,FIONBIO,&mode)) {
+ error << "cannot set non-blocking mode for IP MIDI input socket (" << ::strerror (errno) << ')' << endmsg;
+ return false;
+ }
+ mode = 1; /* just in case it was modified in the previous call */
+ if (ioctlsocket(sockout,FIONBIO,&mode)) {
+ error << "cannot set non-blocking mode for IP MIDI output socket (" << ::strerror (errno) << ')' << endmsg;
+ return false;
+ }
+#endif
+