void nn_xsurveyor_rm (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xsurveyor *xsurveyor; struct nn_xsurveyor_data *data; xsurveyor = nn_cont (self, struct nn_xsurveyor, sockbase); data = nn_pipe_getdata (pipe); nn_fq_rm (&xsurveyor->inpipes, pipe, &data->initem); nn_dist_rm (&xsurveyor->outpipes, pipe, &data->outitem); nn_free (data); }
void nn_xbus_rm (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xbus *xbus; struct nn_xbus_data *data; xbus = nn_cont (self, struct nn_xbus, sockbase); data = nn_pipe_getdata (pipe); nn_fq_rm (&xbus->inpipes, pipe, &data->initem); nn_dist_rm (&xbus->outpipes, pipe, &data->outitem); nn_free (data); }