People often ask this, or a similar sounding question. It's usually something in the form of "how can I decode the whole file" or "how can I get the lattice of the whole file". This feature (IMO) lies in the domain of "offline" and not "online" processing.
The purpose of online processing is to provide recognition results as soon as possible. This has been the case for many use-cases in the past, starting from dictation, but going to real-time dialog systems and voice assistants these days. Other service providers (eg. Google) also deliver this feature - they call it something like "streaming processing".
Getting the recognition result of the whole file (often together with the lattice) is something that is often used in offline speech analytics,usually in the call center setting. The reason people are drawn towards the TCP programs (instead of the regular decoding scripts) is convenience. The issue is that not knowing the amount and location of all the files ahead of time, you would need to spawn the decoding process from scratch for each file, which can be quite costly. Having a TCP program resident in memory with all the models loaded all the time is very convenient because you can just send files to it as needed.
All of these are engineering problems, however, not scientific ones. In fact, it is my personal opinion that the Kaldi as a research tool and an opensource project doesn't benefit much from solving these particular engineering issues The scripts Kaldi provides for offline processing are absolutely sufficient for research purposes, ie processing speech corpora. It feels to me that solving this problem is beneficial mostly to large organizations or commercial companies serving these organizations and if that is the case, they should hire proper engineers for a fair wage to solve them internally, rather than relying on the opensource/research community to do it for them for free.
Maybe I'm wrong on this? Maybe you have a legitimate scenario this would benefit the community as a whole and if so I'd love to hear it. Also, maybe there are better ways to solve this problem than using TCP/IP? Can you share what exactly you are trying to solve?
Danijel