static void nn_xpush_out (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xpush *xpush; struct nn_xpush_data *data; xpush = nn_cont (self, struct nn_xpush, sockbase); data = nn_pipe_getdata (pipe); nn_lb_out (&xpush->lb, pipe, &data->lb); }
void nn_xreq_in (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_fq_in (&xreq->fq, &data->fq); }
void nn_xreq_out (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_out (&xreq->lb, pipe, &data->lb); }
static void nn_xsub_in (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_in (&xsub->fq, &data->fq); }
void nn_xsurveyor_out (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_dist_out (&xsurveyor->outpipes, pipe, &data->outitem); }
void nn_xsurveyor_in (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_in (&xsurveyor->inpipes, pipe, &data->initem); }
static void nn_xpull_in (NN_UNUSED 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_in (&xpull->fq, pipe, &data->fq); }
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); }
void nn_xbus_out (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_dist_out (&xbus->outpipes, pipe, &data->outitem); }
void nn_xbus_in (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_in (&xbus->inpipes, pipe, &data->initem); }
static void nn_xpush_out (struct nn_sockbase *self, struct nn_pipe *pipe) { struct nn_xpush *xpush; struct nn_xpush_data *data; xpush = nn_cont (self, struct nn_xpush, sockbase); data = nn_pipe_getdata (pipe); nn_lb_out (&xpush->lb, pipe, &data->lb); nn_sockbase_stat_increment (self, NN_STAT_CURRENT_SND_PRIORITY, nn_lb_get_priority (&xpush->lb)); }
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_xreq_out (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_out (&xreq->lb, &data->lb); nn_sockbase_stat_increment (self, NN_STAT_CURRENT_SND_PRIORITY, nn_lb_get_priority (&xreq->lb)); }
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, &data->initem); nn_dist_rm (&xsurveyor->outpipes, &data->outitem); nn_free (data); }