tcp 소켓 프로그래밍2 [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-3) TCP 소켓 프로그래밍 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.comhttps://claremont.tistory.com/entry/UNIXLinux-ep11-1-%EC%86%8C%EC%BC.. 2024. 12. 8. 이전 1 다음