很不错的网络通信代码 WSADATAdata; intiRet; iRet=WSAStartup(MAKEWORD(2,2),&data); m_ip.SetAddress(202,198,47,21); g_hConnectionCount=CreateSemaphore(NULL,1,1,NULL); m_dwCount=0; m_pFile=fopen("g:\\ag\\log\\proxy.log","ab"); BYTEb1,b2,b3,b4; intnRet; FILE*pFile=fopen("g:\\ag