Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

전용 클라이언트(Client) 타입

지금까지 클라이언트(Client) 측에서 이루어진 모든 상호작용은 꽤 저수준(low-level)이었습니다. 응답 채널을 직접 만들고, 명령(command)을 구성해서 서버로 보낸 다음, 다시 응답 채널에서 recv를 호출해 결과를 기다려야 했죠.

이런 과정은 추상화하기 딱 좋은 **보일러플레이트(boilerplate, 반복되는 표준 코드)**입니다. 이번 연습 문제에서는 바로 이 부분을 깔끔하게 정리해 볼 것입니다.

Exercise

The exercise for this section is located in 07_threads/08_client