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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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










Exercises


21.1

Build the program shown in Figure 20.9 and run it specifying an IP address on the command line of 224.0.0.1. What happens?

21.2

Modify the program in the previous example to bind 224.0.0.1 and port 0 to its socket. Run it. Are you allowed to bind a multicast address to the socket? If you have a tool such as tcpdump, watch the packets on the network. What is the source IP address of the datagram you send?

21.3

One way to tell which hosts on your subnet are multicast-capable is to ping the all-hosts group: 224.0.0.1. Try this.

Section 21.9, wait a few minutes, and see if any session announcements appear. Try this and see if you receive any announcements.

21.5

Go through the calculations in Figure 21.22 when the fractional part of the NTP timestamp is 1,073,741,824 (one-quarter of 232).

Redo these calculations for the largest possible integer fraction (232 1).

21.6

Modify the implementation of mcast_set_if for IPv4 to remember each interface name for which it obtains the IP address to prevent calling ioctl again for that interface.


/ 450