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


10.1

In our client code shown in Figure 10.4, what will happen if SCTP returns an error? How would you correct this problem?

10.2

What will happen if our server exits before responding? Is there any way the client can be made aware of this?

10.3

In Figure 10.7 on line 22, we set out_sz to 800 bytes. Why do you think we do this? Is there a better way to find a more optimal size to set this to?

10.4

What effects will the Nagle algorithm (see Section 7.10) have on our client shown in Figure 10.7? Would turning off the Nagle algorithm be better for this program? Build the client and server code, then modify both of them to disable the Nagle algorithm.

10.5

In Section 10.6, we state that an application should change the number of streams before setting up an association. What happens if the application changes the number of streams afterwards?

10.6

When modifying the number of streams, we state that the one-to-many-style socket is the only style that can use ancillary data to request more streams. Why is this true? (

Hint: The ancillary data must be sent with a message.)

Section 10.7, we modified the server to terminate the association after replying to each message. Will this cause any problems? Is it a good design decision?


/ 450