write
Write data to UDP socket
Syntax
Description
write(
sends the vector of values inu
,data
,destinationAddress
,destinationPort
)data
to the specified IPdestinationAddress
anddestinationPort
, using the defaultdatatype
precision ofuint8
. The function waits until the requested number of values are written to the UDP socket, or until a timeout occurs.
write(
sends the vector of values inu
,data
)data
to the last useddestinationAddress
anddestinationPort
, using the defaultdatatype
precision ofuint8
. If you do not specifydestinationAddress
anddestinationPort
in a previous call towrite
orwriteline
for the UDP socketu
, this syntax throws an error.
write(
sends the vector of values inu
,data
,datatype
)data
using the specifieddatatype
precision, regardless of the actual type ofdata
.
write(
sends the vector of values inu
,data
,datatype
,destinationAddress
,destinationPort
)data
using the specifieddatatype
,destinationAddress
, anddestinationPort
.