use tpc_connect() and udp_connect() in Client