Hauptinhalt

Diese Seite wurde mithilfe maschineller Übersetzung übersetzt. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

UDP-Schnittstelle

Kommunikation über das UDP-Protokoll

Das User Datagram Protocol (UDP) ist ein Transportprotokoll, das auf dem Internet Protocol (IP) aufsetzt. Verwenden Sie die UDP-Schnittstelle zum Lesen und Schreiben von Binärdaten und ASCII-Daten. Sie können auf Servern, Computern und Instrumenten lesen und schreiben und Anwendungen wie Video- und Audio-Streaming, Kassensysteme und andere Geschäftsanwendungen nutzen.

Funktionen

alle erweitern

udpportConnect to UDP socket
echoudpStart or stop echo UDP server
configureTerminatorSet terminator for ASCII string communication with UDP socket
configureCallbackSet callback function and trigger condition for communication with UDP socket
configureMulticastSet multicast properties for communication with UDP socket
udpportfindFind UDP socket connections (Seit R2024a)
readRead data from UDP socket
readlineRead line of ASCII string data from UDP socket
writeWrite data to UDP socket
writelineWrite line of ASCII data to UDP socket
flushClear UDP socket buffers

Apps

UDP ExplorerCreate UDP socket and communicate over networks using UDP (Seit R2022a)

Blöcke

UDP ReceiveReceive data over UDP network from specified remote machine
UDP SendSend data over UDP network to specified remote machine

Themen

Fehlersuche

Troubleshooting UDP Interface

Troubleshoot the UDP interface.

Resolve UDP Port Connection Errors

Troubleshoot connecting to a UDP socket.

Resolve UDP Port Warning: Unable to Read Any Data

Troubleshoot when you receive no data and you get the warning message: 'udpport' unable to read any data.

Resolve UDP Port Warning: Unable to Read All Data

Troubleshoot when you receive some data and you get the warning message: 'udpport' unable to read all requested data.

Enthaltene Beispiele