UNIX Network Programming Volume 1, Third Edition [Electronic resources] : The Sockets Networking API نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

UNIX Network Programming Volume 1, Third Edition [Electronic resources] : The Sockets Networking API - نسخه متنی

Addison Wesley

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید










28.8 Summary


Raw sockets provide three capabilities:

  • We can read and write ICMPv4, IGMPv4, and ICMPv6 packets.

  • We can read and write IP datagrams with a protocol field that the kernel does not handle.

  • We can build our own IPv4 header, normally used for diagnostic purposes (or by hackers, unfortunately).


Two commonly used diagnostic tools, ping and traceroute, use raw sockets, and we have developed our own versions of both that support IPv4 and IPv6. We also developed our own icmpd daemon that provides access to ICMP errors for a UDP socket. This example also provided an example of descriptor passing across a Unix domain socket between an unrelated client and server.


/ 450