io/m_io_net.c
/* Set Windows SIO_LOOPBACK_FAST_PATH which must be enabled BEFORE connecting, and on
 * the listening socket as well.  Windows 8/2012+ only. */
Set Windows SIO_LOOPBACK_FAST_PATH which must be enabled BEFORE connecting, and on
the listening socket as well.
Set Windows SIO_LOOPBACK_FAST_PATH which must be enabled BEFORE connecting and on the listening socket as well .
static void M_io_net_set_fastpath(M_io_handle_t *handle)
{
#ifdef _WIN32
	int   OptionValue           = 1;
	DWORD NumberOfBytesReturned = 0;
#  ifndef SIO_LOOPBACK_FAST_PATH
#    define SIO_LOOPBACK_FAST_PATH 0x98000010
#  endif
	WSAIoctl(handle->data.net.sock,
	         SIO_LOOPBACK_FAST_PATH,
	         &OptionValue,
	         sizeof(OptionValue),
	         NULL,
	         0,
	         &NumberOfBytesReturned,
	         0,
	         0);
#else
	(void)handle;
#endif
}
static void M_io_net_set_fastpath ( M_io_handle_t * handle ) { #ifdef _WIN32 int OptionValue = 1 ; DWORD NumberOfBytesReturned = 0 ; #  ifndef SIO_LOOPBACK_FAST_PATH #    define SIO_LOOPBACK_FAST_PATH  0x98000010 #  endif WSAIoctl ( handle -> data . net . sock , SIO_LOOPBACK_FAST_PATH , & OptionValue , sizeof ( OptionValue ) , NULL , 0 , & NumberOfBytesReturned , 0 , 0 ) ; #else ( void ) handle ; #endif }
Set Windows SIO_LOOPBACK_FAST_PATH which must be enabled BEFORE connecting, and on
 the listening socket as well.
Set Windows SIO_LOOPBACK_FAST_PATH which must be enabled BEFORE connecting and on the listening socket as well .