Single TCP client with send/receive

Hi there,

I’m attempting to use the TCP nodes in a fairly mundane manner. I have a TCP server on an external device. I would like to connect to it, send it a message, be able to get the response, send another message, etc. Essentially it’s a telnet server that requires login and therefore I need the sender and receiver TCP nodes to use the same TCP socket otherwise you cannot authenticate. The endpoint device does not send an initial message on connection. Can I do that with the existing TCP nodes?

-Mitch

Look at the TCP-request node rather than the in and out ones

The request node looks to close the connection after every request. This causes the auth to reset so I can’t maintain the same session. Unless I’m doing something wrong with the settings?

Have you tried setting Return to never - keep connection open ?

It looks like the never - keep connection open is what I’m looking for. The name mislead me as I assumed never would be never give me a return value, not never close the connection.