app_tcp_handler changes for connecting and sending data to a host connection