add tcp_connect() routine