Instrument Control Toolbox | ![]() ![]() |
Start or stop a UDP echo server
Syntax
Arguments
' state ' |
Turn the server on or off. |
port |
Port number of the server. |
Description
echoudp('
starts a UDP server with port number specified by state
',port)
port
. state
can only be on
.
echoudp('
stops the echo server. state
')
state
can only be off
.
Example
Start the echo server and create a UDP object.
Connect the UDP object to the host.
Write to the host and read from the host.
Stop the echo server and disconnect the UDP object from the host.
Functions
![]() | echotcpip | fclose | ![]() |