Java Network Programming (3rd ed) [Electronic resources] نسخه متنی

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

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

Java Network Programming (3rd ed) [Electronic resources] - نسخه متنی

Harold, Elliotte Rusty

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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








Chapter 13. UDP Datagrams and Sockets


Previous chapters discussed
network applications that use the TCP protocol. TCP is designed for
reliable transmission of data. If data is lost or damaged in
transmission, TCP ensures that the data is resent; if packets of data
arrive out of order, TCP puts them back in the correct order; if the
data is coming too fast for the connection, TCP throttles the speed
back so that packets won't be lost. A program never
needs to worry about receiving data that is out of order or
incorrect. However, this reliability comes at a price. That price is
speed. Establishing and tearing down TCP connections can take a fair
amount of time, particularly for protocols such as HTTP, which tend
to require many short transmissions.

The User Datagram Protocol (UDP) is an alternative protocol for
sending data over IP that is very quick, but not reliable. That is,
when you send UDP data, you have no way of knowing whether it
arrived, much less whether different pieces of data arrived in the
order in which you sent them. However, the pieces that do arrive
generally arrive quickly.


/ 164