Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 모의 주식
- 백준
- 프로그래밍
- 풀스택프레임워크
- 코딩독학
- 자바독학
- C++
- 자바
- 주가예측
- java
- frontend
- 개인프로젝트
- 코스닥
- java정리
- 코딩테스트
- backend
- Python
- Reflex
- 프로그램
- 개발
- 사물인터넷
- 이웃한 칸
- 프로그래머스
- SNS
- Project
- 빅데이터
- 자바정리
- 개발자
- 코딩
- 코테
Archives
- Today
- Total
목록TCP IP 소켓프로그래밍 (7)
Creative Code
Chapter1(서버,클라이언트 통신)
※hello_server.c #include #include #include #include #include #include void error_handling(char *message); int main(int argc, char *argv[]) { int serv_sock; // 서버 소켓 디스크립터 int clnt_sock; // 클라이언트 소켓 디스크립터 struct sockaddr_in serv_addr; // 서버 주소 구조체 struct sockaddr_in clnt_addr; // 클라이언트 주소 구조체 socklen_t clnt_addr_size; // 클라이언트 주소 구조체의 크기 char message[10]; // 메시지를 저장할 버퍼 if (argc != 2) { printf("U..
TCP IP 소켓프로그래밍
2023. 10. 10. 08:42