static void nn_req_term (struct nn_req *self) { nn_timer_term (&self->timer); nn_msg_term (&self->reply); nn_msg_term (&self->request); nn_fsm_term (&self->fsm); nn_xreq_term (&self->xreq); }
void nn_req_term (struct nn_req *self) { nn_timer_term (&self->task.timer); nn_task_term (&self->task); nn_msg_term (&self->task.reply); nn_msg_term (&self->task.request); nn_fsm_term (&self->fsm); nn_xreq_term (&self->xreq); }
static void nn_req_term (struct nn_req *self) { if (self->state == NN_REQ_STATE_UNSENT || self->state == NN_REQ_STATE_SENT) nn_msg_term (&self->request); if (self->state == NN_REQ_STATE_RECEIVED) nn_msg_term (&self->reply); nn_timer_term (&self->resend_timer); nn_xreq_term (&self->xreq); }
static void nn_xreq_destroy (struct nn_sockbase *self) { struct nn_xreq *xreq; xreq = nn_cont (self, struct nn_xreq, sockbase); nn_xreq_term (xreq); nn_free (xreq); }