Instrument Control Toolbox    
echotcpip

Start or stop a TCP/IP echo server

Syntax

Arguments

'state'
Turn the server on or off.
port
Port number of the server.

Description

echotcpip('state',port) starts a TCP/IP server with port number specified by port. state can only be on.

echotcpip('state') stops the echo server. state can only be off.

Example

Start the echo server and create a TCP/IP object.

Connect the TCP/IP object to the host.

Write to the host and read from the host.

Stop the echo server and disconnect the TCP/IP object from the host.

See Also

Functions

echoudp, tcpip, udp


  disp echoudp