UDP is a simple protocol compared to TCP. Communication occurs by creating an instance of the Udp component, "listening" on a port, and sending and receiving datagrams. The techniques required for sending and receiving UDP datagrams differ from those employed for sending and receiving TCP data. For example:
- UDP is connection-less and therefore unreliable meaning that the receiving side does not acknowledge the receipt of data on the transport layer. If error checking is required, this will have to occur using an application-layer protocol.
- UDP sends distinct blocks of data. This means that a block of data, if successfully sent and received, arrives as a block of data exactly the same size as that sent. Also, if 3 datagrams are sent 3 datagrams will be received.
- UDP has functionality not possible in TCP such as broadcasting (sending data to all hosts on a network) and multicasting (sending data to all hosts receiving data at a particular IP address).
In This Section
- UDP Protocol Overview
- An overview of the UDP protocol.
- Basic Sending and Receiving of Datagrams
- Demonstrates how to send and receive UDP datagrams.
- Broadcasting and Multicasting Datagrams
- Demonstrates how to broadcast and multicast UDP datagrams.
Sockets Udp Menublock
Related Sections
- The Server and Tcp Components
- Examines use of the Server and Tcp components.
- The Udp Component
- Examines use of the Udp component.
- The Dns, Ping and Trace Components
- Examines use of the Dns, Ping and Trace components.
- Security
- Describes use of security.
- Synchronous vs Asynchronous Methods
- This topic discusses the benefits and uses for synchronous and asynchronous methods.
- Using EndXXX Events
- Describes how to use the EndXXX events that are raised upon the completion of a method.
- Using Editor Forms
- Describes how to use the component designer Editor Forms.
SSL Sockets Component Menublock
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.