You well know tasks in olympiads, where solution's input is output of same module. Server.exe's output is Client.exe's input, and in another direction. How do you think it's testing under Windows? I try to made personal testing system.
More formally: You have: 1) a.exe and b.exe 2) stdout of a.exe is stdin of b.exe and in another direction
How do they do it? :)
PS: if u dont understand me, imagine chat of two console programs(with AI), each of them read&write into standart input\output, and you need connect them.