select기반 1클라 1스레드(친구 과제용으로 맨듬) 참고 : https://www.joinc.co.kr/w/Site/Network_Programing/Documents/select참고 : http://perfectchoi.blogspot.kr/2009/09/%EC%86%8C%EC%BC%93%EC%9D%98-%EC%9E%85%EC%B6%9C%EB%A0%A5-%EB%AA%A8%EB%8D%B8select-%EB%B0%B0%EC%97%B4-%EC%82%AC%EC%9A%A9.html
12345char hostname[255];PHOSTENT hostinfo = NULL; if (gethostname(hostname, sizeof(hostname)) == 0) if ((hostinfo = gethostbyname(hostname)) != NULL) printf("server address -> %s\n", inet_ntoa(*(struct in_addr*)*hostinfo->h_addr_list));cs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104#include #include #include #pragma comment(lib, "WS2_32.lib")#include "resource.h" #define WM_NETWORK (WM_USER + 1) HWND hDlgMain; SOCKET Socket;sockaddr_in Address; char ListStr[256]; BOOL CALL..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102#include #include #include #pragma comment(lib, "WS2_32.lib")#include "resource.h" #define WM_NETWORK (WM_USER + 1) HWND hDlgMain; SOCKET Socket, ClntSocket;sockaddr_in Address, ClntAddress; char List..