Add some helper functions to st_client and st_udp_client.