If the Do-more is the one initiating the connection:
1. Create a TCP Client device.
2. Use OPENTCP instruction to open TCP connection to your partner.
3. Use STREAMOUT to send data; use STREAMIN to get data.
4. Use CLOSE to close the TCP Client device (which will close the TCP connection).
If the Do-more is the one receiving the connection:
1. Create TCP Server device.
2. Use TCPLISTEN instruction to listen and respond to the partner's TCP connection request.
3. Use STREAMIN to receive data; use STREAMOUT to send data.
4. If the Do-more is to terminate the connection, then, again, use CLOSE. If the partner is going to close the connection, then there is nothing to do except go back up and use TCPLISTEN for the next time he wants to connect.
Use the Help file for these instructions to understand their use and their parameters.