Contenu principal

Interface UDP

Communiquer via le protocole UDP

UDP (User Datagram Protocol) est un protocole de transport qui se superpose au protocole IP (Internet Protocol). Utilisez l’interface UDP pour lire et écrire des données binaires et ASCII. Vous pouvez lire et écrire sur des serveurs, des ordinateurs et des instruments. Vous pouvez utiliser des applications, notamment de streaming vidéo et audio, des systèmes de points 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