We are using ListenTcp processor to get the message. After that, we need to construct and send an ACK back to the message sender in the same connection. Is there a way we can send acknowledgment message using the same connection? like a handshake? We cannot use PutTcp since the message sender doesn't have ip/port listening. Please suggest.
What you are asking for is basically an application specific protocol on top of TCP, so you would need to implement a custom processor that understands your protocol and sends the acknowledgement back. A good example would be the ListenRELP processor which is very similar to ListenTCP/ListenSyslog, except it needs to acknowledge which RELP frame ids it has received.