_TransportTCP: rewrite not to use closures