Windows Sockets: Data PACKET socket

Source: Internet
Author: User

This article describes the data PACKET socket, which is one of the two available Windows Sockets types. (Another type is stream socket .)

The data PACKET socket supports two-way data streams, which cannot be delivered sequentially or repeatedly. Data reports are not guaranteed to be reliable either; they may not reach the destination. Data packets may not arrive in sequence and may be duplicated. However, as long as the record size does not exceed the internal size limit of the receiver, the record boundary in the data will be kept. You are responsible for managing order and reliability. (The reliability is usually good on the LAN, but it is not good on the WAN [WAN], such as the Internet .)

The data is reported as "no connection", that is, no explicit connection is established. You can send a data packet to a specified socket and receive a message from the specified socket.

An example of a Data PACKET socket is an application that keeps the system clock on the network synchronized. This explains an additional function of the Data PACKET socket, that is, to broadcast messages to a large number of network addresses in at least some settings.

In terms of record-oriented data, the data PACKET socket is superior to the stream socket. For more information about data reporting Sockets, see the Windows Sockets specification in Platform SDK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.