メインコンテンツ

このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。

UDP インターフェース

UDPプロトコルを使用した通信

ユーザー データグラム プロトコル (UDP) は、インターネット プロトコル (IP) の上に階層化されたトランスポート プロトコルです。バイナリ データと ASCII データの両方の読み取りと書き込みに UDP インターフェイスを使用します。サーバー、コンピューター、機器の読み取りと書き込みが可能で、ストリーミング ビデオやオーディオ、POS システム、その他のビジネス アプリケーションなどのアプリケーションを使用できます。

関数

すべて展開する

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

アプリ

UDP ExplorerCreate UDP socket and communicate over networks using UDP (R2022a 以降)

ブロック

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

トピック

トラブルシューティング

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.

注目の例