주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

UDP 인터페이스

UDP 프로토콜을 사용한 통신

UDP(사용자 데이터그램 프로토콜)는 IP(인터넷 프로토콜) 위에 구축된 전송 프로토콜입니다. UDP 인터페이스를 사용하여 이진 데이터와 ASCII 데이터를 읽고 씁니다. 서버, 컴퓨터, 계측기를 읽고 쓸 수 있으며, 스트리밍 비디오 및 오디오, POS 시스템, 기타 비즈니스 애플리케이션과 같은 애플리케이션을 사용할 수 있습니다.

함수

모두 확장

udpportUDP 소켓에 연결
echoudp에코 UDP 서버 시작 또는 중지
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 이후)
readUDP 소켓에서 데이터 읽기
readlineUDP 소켓에서 ASCII 문자열 데이터 줄을 읽습니다.
writeUDP 소켓에 데이터 쓰기
writelineWrite line of ASCII data to UDP socket
flushUDP 소켓 버퍼 지우기

UDP ExplorerCreate UDP socket and communicate over networks using UDP (R2022a 이후)

블록

UDP Receive지정된 원격 컴퓨터에서 UDP 네트워크를 통해 데이터를 수신합니다.
UDP SendUDP 네트워크를 통해 지정된 원격 컴퓨터로 데이터를 보냅니다.

도움말 항목

문제 해결

Troubleshooting UDP Interface

Troubleshoot the UDP interface.

UDP 포트 연결 오류 해결

UDP 소켓에 연결할 때 발생하는 문제를 해결합니다.

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.

추천 예제