- ut->fcp.max_slice_bytes = scd->max_slice_bytes;
- ut->fcp.send = udp_send_fec;
- ut->fcp.private_data = ut;
- vss_add_fec_client(&ut->fcp, &ut->fc);
+ ut->fcp.max_slice_bytes = scd->max_slice_bytes;
+ ut->fcp.init_fec = NULL; /* FIXME */
+ ut->fcp.send_fec = udp_send_fec;
+
+ ut->sc = para_calloc(sizeof(*ut->sc));
+ ut->sc->fd = -1; /* not yet connected */
+ ut->sc->private_data = ut;
+ ut->fc = vss_add_fec_client(ut->sc, &ut->fcp);
+
+ PARA_INFO_LOG("adding to target list (%s#%d)\n", ut->host, ut->port);
+ para_list_add(&ut->sc->node, &targets);