+ struct dccp_fec_client *dfc = private_data;
+ int ret = write_nonblock(dfc->sc->fd, buf, len, DCCP_MAX_BYTES_PER_WRITE);
+
+ if (ret < 0)
+ dccp_shutdown_client(dfc->sc);
+ return ret;
+}
+
+static void dccp_post_select(fd_set *rfds, __a_unused fd_set *wfds)
+{
+ struct sender_client *sc;
+ struct dccp_fec_client *dfc;
+ int tx_ccid;
+
+ sc = accept_sender_client(dss, rfds);
+ if (!sc)
+ return;
+
+ /* If CCID identifiable, present client as <host>#<port>~<ccid> */
+ tx_ccid = dccp_get_tx_ccid(sc->fd);
+ if (tx_ccid != -1) {
+ char *tmp = make_message("%s~%d", sc->name, tx_ccid);
+
+ free(sc->name);
+ sc->name = tmp;
+ }
+ /*
+ * Bypass unused CCID paths: the sender does not receive application data
+ * from the client; by shutting down this unused communication path we can
+ * reduce processing costs a bit. See analogous comment in dccp_recv.c.
+ */
+ if (shutdown(sc->fd, SHUT_RD) < 0) {
+ PARA_WARNING_LOG("%s\n", strerror(errno));
+ shutdown_client(sc, dss);
+ return;
+ }
+ dfc = para_calloc(sizeof(*dfc));
+ sc->private_data = dfc;
+ dfc->sc = sc;
+ /* XXX RESOLVED LATER vss_add_fec_client(self, dfc, &dfc->fc); */