Single TCP client with send/receive

#1

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

0 Likes

#2

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

0 Likes

#3

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?

0 Likes

#4

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

0 Likes

#5

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.

0 Likes