Contenido principal

Esta página se ha traducido mediante traducción automática. Haga clic aquí para ver la versión original en inglés.

Interfaz UDP

Comunicación mediante el protocolo UDP

El Protocolo de Datagramas de Usuario (UDP) es un protocolo de transporte que se superpone al Protocolo de Internet (IP). Utilice la interfaz UDP para leer y escribir datos binarios y datos ASCII. Puede leer y escribir en servidores, equipos e instrumentos, y utilizar aplicaciones como la transmisión de vídeo y audio, sistemas de punto de venta y otras aplicaciones empresariales.

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
flushBorrar los búferes del socket UDP

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