Add template support to st_sudp_client, st_udp_client, st_sclient, st_client and st_server.