[Webproxy-lab] Echo server communication
2024. 5. 4. 16:44ㆍ크래프톤 정글 5기/공부
0. echo 디렉토리 생성 및 Makefile 수정
# makefile (echo)
CC = gcc
CFLAGS = -O2 -Wall -I .
LIB = -lpthread
all: echoclient echoserver
echoclient: echoclient.c csapp.o
$(CC) $(CFLAGS) -o echoclient echoclient.c csapp.o $(LIB)
echoserver: echoserver.c csapp.o
$(CC) $(CFLAGS) -o echoserver echoserver.c csapp.o $(LIB)
csapp.o: csapp.c
$(CC) $(CFLAGS) -c csapp.c
clean:
rm -f *.o echoclient echoserver *~
1. echoclient.c
2. echoserver.c
1. Server port != Client port
2. Server port == Client port
# Todo
Tiny Web Server
Proxy-lab
'크래프톤 정글 5기 > 공부' 카테고리의 다른 글
CSAPP: Network Programming (1) | 2024.05.07 |
---|---|
[Webproxy-lab] Tiny Web Server (0) | 2024.05.06 |
System Call (+ OS, Kernel) (0) | 2024.05.01 |
Malloc-lab (realloc 개선) (0) | 2024.04.30 |
Heap Sort (0) | 2024.04.29 |