Programming Step/C++1 소켓 프로그래밍 #define WIN32_LEAN_AND_MEAN #include #include #include #include #include // Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib #pragma comment (lib, "Ws2_32.lib") #pragma comment (lib, "Mswsock.lib") #pragma comment (lib, "AdvApi32.lib") #define DEFAULT_BUFLEN 512 #define DEFAULT_PORT "27015" int __cdecl main(int argc, char** argv) { WSADATA wsaData; SOCKET ConnectSocket = INVALID_SOCKE.. 2020. 4. 9. 이전 1 다음