클라이언트 (1) 썸네일형 리스트형 UDP통신 소스코드 (Server / Client) Server Source // Sever Test.cpp : 기본 프로젝트 파일입니다. #include "stdafx.h" #include #include // 통신을 하기 위해서 추가해야하는 헤더파일 #pragma comment( lib, "ws2_32.lib" ) using namespace System; int main(array ^args) { WSAData wsa; SOCKADDR_IN sockAddr; SOCKET sock; char buf[ 128 ] = { 0, }; try { if( WSAStartup( MAKEWORD( 2, 2 ), &wsa ) != 0 ) { throw WSAGetLastError(); } sock = socket( AF_INET, SOCK_DGRAM, 0 ).. 이전 1 다음