Start or stop TCP/IP echo server
Shows how to set up an echo server.
Start the echo server on port 4000 and create a TCPIP object.
echotcpip('on',4000) t = tcpip('localhost',4000);
Connect the TCPIP object to the host.
Shows how to communicate with the echo server.
Write to the host and read from the host.
fprintf(t,'echo this string.') data = fscanf(t);
Display the read data.
The string is returned.
data = echco this string.
Shows how to dismiss an echo server.
Stop the echo server and disconnect the TCPIP object from the host.