udpport
Connect to UDP socket
Description
The udpport object allows you to perform byte-type and
datagram-type UDP communication using a UDP socket on the local host.
Creation
Syntax
Description
u = udpport or u = udpport("byte")
constructs a byte-type udpport object u, with an IP
address version set to IPV4, bound to a UDP socket.
u = udpport( or
IPv)u = udpport("byte", constructs a byte-type
IPv)udpport object with an IP address version specified by
IPv, which can be either "IPV4" or
"IPV6".
u = udpport("datagram") constructs a datagram-type
udpport object u, with an IP address version set
to IPV4.
u = udpport("datagram", constructs a
datagram-type IPv)udpport object with an IP address version specified by
IPv, which can be either "IPV4" or
"IPV6".
u = udpport(___,
constructs a Name,Value)udpport object and sets specified object properties using
name-value pair arguments. If you specify an invalid property name or value, the function
does not create the object. udpport properties that can be set using
name-value pair arguments are LocalHost,
LocalPort, Timeout,
ByteOrder, OutputDatagramSize, and
EnablePortSharing.
Input Arguments
Name-Value Arguments
Properties
Object Functions
Functions for byte-type and datagram-type udpport interfaces:
read | Read data from UDP socket |
write | Write data to UDP socket |
configureCallback | Set callback function and trigger condition for communication with UDP socket |
configureMulticast | Set multicast properties for communication with UDP socket |
flush | Clear UDP socket buffers |
Functions for a byte-type udpport interface only:
readline | Read line of ASCII string data from UDP socket |
writeline | Write line of ASCII data to UDP socket |
configureTerminator | Set terminator for ASCII string communication with UDP socket |