dsp.UDPSender
Send UDP packets to network
Description
The dsp.UDPSender
object sends data packets over the network using the
User Datagram Protocol (UDP). UDP is a simple message-based connectionless protocol. The
protocol sends data packets in one direction from source to destination without verifying the
readiness of the receiver. The protocol has no handshaking mechanism. The data packets can get
dropped for several reasons. There is no acknowledgement, retransmission, or timeout in UDP.
However, UDP is a very simple transmission protocol and is suitable for time-sensitive
applications where dropping packets is preferable to waiting for packets delayed due to
retransmission.
To send UDP packets to the network:
Create the
dsp.UDPSender
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
returns a UDP sender
object that sends UDP packets to a specified port.udps
= dsp.UDPSender
returns a UDP sender object, udps
= dsp.UDPSender(Name,Value
)udps
, with each property set to the
specified value.
Properties
Usage
Syntax
Description
sends
one UDP packet, y
= udps(Packet
)Packet
, to the network.
Since the object sends the data over the UDP network, the data packets can get lost
during transmission and the receiver is not guaranteed to receive all the data that you
send. You can receive the data using the dsp.UDPReceiver
object.
Input Arguments
Object Functions
To use an object function, specify the
System object™ as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Examples
Extended Capabilities
Version History
Introduced in R2012a