static void nn_xpull_rm (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xpull *xpull; struct nn_xpull_data *data; xpull = nn_cont (self, struct nn_xpull, sockbase); data = nn_pipe_getdata (pipe); nn_fq_rm (&xpull->fq, pipe, &data->fq); nn_free (data); }
static void nn_xsub_rm (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xsub *xsub; struct nn_xsub_data *data; xsub = nn_cont (self, struct nn_xsub, sockbase); data = nn_pipe_getdata (pipe); nn_fq_rm (&xsub->fq, &data->fq); nn_free (data); }
void nn_xreq_rm (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xreq *xreq; struct nn_xreq_data *data; xreq = nn_cont (self, struct nn_xreq, sockbase); data = nn_pipe_getdata (pipe); nn_lb_rm (&xreq->lb, pipe, &data->lb); nn_fq_rm (&xreq->fq, pipe, &data->fq); nn_free (data); }
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); }
void nn_xreq_rm (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xreq *xreq; struct nn_xreq_data *data; xreq = nn_cont (self, struct nn_xreq, sockbase); data = nn_pipe_getdata (pipe); nn_lb_rm (&xreq->lb, &data->lb); nn_fq_rm (&xreq->fq, &data->fq); nn_free (data); nn_sockbase_stat_increment (self, NN_STAT_CURRENT_SND_PRIORITY, nn_lb_get_priority (&xreq->lb)); }