Contenido principal

Interfaz UDP

Comunicación mediante el protocolo UDP

El Protocolo de datagramas de usuario (UDP) es un protocolo de transporte superpuesto al Protocolo de Internet (IP). Utilice la interfaz UDP para leer y escribir datos binarios y ASCII. Puede leer y escribir en servidores, computadoras, instrumentos y utilizar aplicaciones como transmisión de video y audio, sistemas de puntos de venta y otras aplicaciones comerciales.

Funciones

expandir todo

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 (Desde 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 (Desde R2022a)

Bloques

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

Temas

Solución de problemas

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.

Ejemplos destacados