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언어 코딩 패턴
C
191
󼩇󺦳
󻞳󼩘󽴔󻫗󻳫󼟷󼘃󽴔󻳐󻭸󽴔󼮓
이제 원하는 만큼 이더넷 인터페이스 카드를 지원할 수 있다. 생성된 각 드라
이버 인스턴스는 자체 데이터 컨텍스트를 만들어서, 핸들을 통해 함수에 전달
된다. 이제 장치 드라이버 API는 다음과 같이 된다.
/* INTERNAL
_
DRIVER
_
STRUCT
에는
함수
간
공유
데이터가
포함된다
.
(
드라이버가
담당하는
인터페이스
카드를
선택하는
방법
등
) */
typedef struct INTERNAL
_
DRIVER
_
STRUCT* DRIVER
_
HANDLE;
/* 'initArg'
에는
드라이버
인스턴스의
정확한
인터페이스를
식별하기
위한
구현
정보가
포함되어
있다
. */
DRIVER
_
HANDLE driverCreate(void* initArg);
void driverDestroy(DRIVER
_
HANDLE h);
void sendByte(DRIVER
_
HANDLE h, char byte);
char receiveByte(DRIVER
_
HANDLE h);
void setIpAddress(DRIVER
_
HANDLE h, char* ip);
void setMacAddress(DRIVER
_
HANDLE h, char* mac);
다시 한번 요구 사항이 변경된다. 이제 서로 다른 종류(예: 서로 다른 제조사)
의 이더넷 네트워크 인터페이스 카드를 사용하게 ...
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

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

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

오현석, 해리 퍼시벌, 밥 그레고리
클라우드 네이티브 애플리케이션 디자인 패턴

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

카순 인드라시리, 스리스칸다라자 수호티얀
개발 7년차, 매니저 1일차

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

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9788966264742