6 #define WIN32_LEAN_AND_MEAN
18 LARGE_INTEGER performance_counter;
19 LARGE_INTEGER performance_frequency;
21 QueryPerformanceCounter(&performance_counter);
22 QueryPerformanceFrequency(&performance_frequency);
24 return (
MicroSeconds) (performance_counter.QuadPart * 1000000LL
25 / performance_frequency.QuadPart);
34 const WORD wVersionRequested = MAKEWORD(2, 2);
35 WSAStartup(wVersionRequested, &wsaData);
41 closesocket(socket_handle);
46 return ioctlsocket(socket_handle, FIONBIO, &iMode);
52 return setsockopt(socket, IPPROTO_IP, IP_TOS, &set_tos,
sizeof(set_tos) );
MilliSeconds GetMilliSeconds(void)
This function shall return the current time in milliseconds relative to epoch, and shall be implement...
void CloseSocketPlatform(int socket_handle)
Platform dependent code to close a socket.
unsigned long long MicroSeconds
int SetSocketToNonBlocking(int socket_handle)
EipStatus
EIP stack status enum.
int SetQosOnSocket(int socket, CipUsint qos_value)
EipStatus NetworkHandlerInitializePlatform(void)
Executes platform dependent network handler initialization code.
unsigned long MilliSeconds
MicroSeconds getMicroSeconds()