Skip to Content
우아한 C언어 코딩 패턴
book

우아한 C언어 코딩 패턴

by Christoper Preschem, 정기훈(Jung Ki Hun)
April 2024
Beginner to intermediate
364 pages
7h 2m
Korean
Insight
Content preview from 우아한 C언어 코딩 패턴
Fluent
152
󻱴󽴔󽴔󺠿󻱃󼗿󽴔󻛧󺽔󺇋󽴔󻙛󻯯󺉛
이번 장의 예제는 이더넷 네트워크 인터페이스 카드용 장치 드라이버를 구현
하는 것이다. 이더넷 네트워크 인터페이스 카드는 소프트웨어가 실행되는 운
영 체제에 설치되므로 POSIX 소켓(socket) 함수를 사용하여 네트워크 데이터
를 주고받을 수 있다. 하지만, 소켓 함수를 사용하는 것보다 더 쉽게 데이터를
보내고 받을 수 있는 방법을 제공하고, 이더넷 드라이버에 몇 가지 부가 기능
을 추가하기 위해 사용자를 위한 추상화를 구축하려고 한다. 즉, 모든 소켓 세
부 정보를 캡슐화하는 무언가를 구현하려고 한다. 이를 달성하기 위해 우선 간
단하게 상태가 없는 형태인 무상태 소프트웨어 모듈(stateless software-mod
-
ule)로 시작할 것이다.
󻀃󻖐󼖫󽴔󻙛󼧓󼞇󻮷󻪃󽴔󺽷󺦗
󼎷󼘜󻝳󼞇
호출자에게 관련 기능이 포함된 함수를 제공하려 한다. 함수는 서로 공유되는
공통 데이터에서는 동작하지 않는다. 따라서 함수 호출 전에 메모리 초기화와
같은 리소스 준비는 필요치 않다.
󻀇󻳫
󼬇󼉫󻱟󻪟󺅛󽴔󺙋󺹻󻳐󻰋󺴫󽴔󻪿󺇏󺣫󽴔󺋿󺝴󻰓󽴔󻳫󺇄󼨧󺆯󽴔󼬇󼉫󻱟󺃏󽴔󼩃󺟈󽴔󺋿󺝴󻰓󽴔󼈫󺟏󼨫󽴔󻝌󺅛󽴔󻕻󻭸
󼨯󽴔󻛧󽴔󻱗󺢓󺴬󽴔󺺛󺦳󺆯󻱟󽴔󼨫󺞳
제공하는 기능에 호출자가 쉽게 접근할 수 있도록 하고 싶다. 호출자는 제공
된 함수와 관련해 초기화 및 클린업을 처리할 필요가 없으며, 세부 구현 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀

Publisher Resources

ISBN: 9788966264742