added transport functions to tcp_listener.cpp