이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
write
UDP 소켓에 데이터 쓰기
구문
설명
write(는 u,data,destinationAddress,destinationPort)data의 값 벡터를 지정된 IP destinationAddress와 destinationPort로 전송하며, 이때 기본 datatype 정밀도인 uint8를 사용합니다. 이 함수는 요청된 수의 값이 UDP 소켓에 기록되거나 시간 초과가 발생할 때까지 기다립니다.
write(는 u,data)data의 값 벡터를 기본 datatype 정밀도인 uint8를 사용하여 마지막으로 사용된 destinationAddress와 destinationPort로 보냅니다. UDP 소켓 u에 대한 write 또는 writeline에 대한 이전 호출에서 destinationAddress 및 destinationPort를 지정하지 않으면 이 구문은 오류를 발생시킵니다.
write(는 u,data,datatype)data의 실제 유형과 관계없이 지정된 datatype 정밀도를 사용하여 data의 값 벡터를 전송합니다.
write(는 지정된 u,data,datatype,destinationAddress,destinationPort)datatype, destinationAddress, destinationPort를 사용하여 data의 값 벡터를 보냅니다.
예제
입력 인수
버전 내역
R2020b에 개발됨