IP 주소3 [컴퓨터 네트워크] IP 주소와 포트 번호 ㅁIP 주소(Internet Protocol Address): 네트워크에 연결된 각 장치(컴퓨터, 서버, 스마트폰 등)가 데이터를 송수신할 때 사용하는 고유한 주소인터넷에 연결된 모든 장치는 고유한 IP 주소를 가져야 한다 [IP 주소 2가지 종류]1. IPv4 (Internet Protocol version 4): 32비트 주소 체계 - 4개의 10진수(0~255)로 구성된 형식e.g. 192.168.1.1, 172.16.254.1, 8.8.8.8 (Google DNS 서버) IPv4는 최대 약 43억 개(2³² 개)의 IP 주소를 제공하지만, 인터넷 사용자의 급증으로 인해 주소가 부족한 문제가 발생했다그래서 나온 것이 IPv6 이다 2. IPv6 (Internet Protocol version 6):.. 2025. 2. 10. [UNIX/Linux] ep11-3+) TCP 소켓 프로그래밍 실습 ex1. 서버에 접속한 클라이언트에 관한 정보를 돌려주는 서비스 프로그램을 작성하라. 되돌려줄 정보는 호스트명, IP주소, 포트 번호이다.struct infor_type { char host[256]; char addr[20]; int port;} struct infor_type msg; ** clientrecv(sd, (char*)&msg, sizeof(msg), 0); ** serverstruct hostent* hp; hp = gethostbyaddr((char*)&cli.sin_addr.s_addr, 4, AF_INET);sprintf(msg.host, “%s”, hp->h_name);sprintf(msg.addr, “%s”, inet_ntoa(cli.sin_addr);msg.po.. 2024. 12. 10. [UNIX/Linux] ep11-1) 소켓 프로그래밍 기초 https://claremont.tistory.com/entry/%EC%9A%B4%EC%98%81%EC%B2%B4%EC%A0%9C-IPCInter-Process-Communication [운영체제] IPC(Inter-Process Communication)https://claremont.tistory.com/entry/ep2-%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4process [운영체제] ep2) 프로세스(process)ㅁ프로세스(process): 실행 중인 프로그램 (실행/스케줄링의 단위 및 자료구조)보조기억장치에 저장claremont.tistory.com [ep11-1, ep11-2의 학습목표]1. TCP/IP 프로토콜의 기본 개념을 이해한다2. IP 주소와 포트 번호의 개.. 2024. 11. 26. 이전 1 다음