CLI: TCPF: Simplify loops
CLI: TCPF: Fix EOF marker sending functionality pt.2