#ifndef _STARTSOCK_H #define _STARTSOCK_H #ifdef _WIN32 #include #include #include #include #include #include #include "Unix2Nt.h" /* #define errno WSAGetLastError() */ #define COMM_BUF_SIZE 512 #ifdef __cplusplus extern "C" { #endif int startWinsock(); int cleanWinsock(); SOCKET duplicateWinsock(SOCKET oldSocket); #ifdef __cplusplus } #endif #endif #endif