#ifndef _MY_UTIL_
#define _MY_UTIL_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/timeb.h>
#pragma warning(disable:4786)
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <deque>
#include <set>
#include <utility>
#include <hash_map>
using namespace std;
#ifdef WIN32
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <process.h>
#include <winsock.h>
#define socklen_t int
#define bzero(a,b) (memset((a),0,(b)))
#defineEWOULDBLOCK
#defineEINPROGRESS
#defineEALREADY
#defineENOTSOCK
#defineEDESTADDRREQ
#defineEMSGSIZE
#defineEPROTOTYPE
#defineENOPROTOOPT
#defineEPROTONOSUPPORT
#defineESOCKTNOSUPPORT
#defineEOPNOTSUPP
#defineEPFNOSUPPORT
#defineEAFNOSUPPORT
#defineEADDRINUSE
#defineEADDRNOTAVAIL
#defineENETDOWN
#defineENETUNREACH
#defineENETRESET
#defineECONNABORTED
#defineECONNRESET
#defineENOBUFS