Contenu principal

Cette page a été traduite par traduction automatique. Cliquez ici pour voir la dernière version en anglais.

Interface UDP

Communication utilisant le protocole UDP

Le protocole UDP (User Datagram Protocol) est un protocole de transport superposé au protocole Internet (IP). Utilisez l'interface UDP pour lire et écrire des données binaires et des données ASCII. Vous pouvez lire et écrire sur des serveurs, des ordinateurs, des instruments et utiliser des applications telles que le streaming vidéo et audio, les systèmes de point de vente et d'autres applications professionnelles.

Fonctions

développer tout

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 (depuis 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

Applications

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

Blocs

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

Rubriques

Résolution des problèmes

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.

Sélection d՚exemples