void nn_stcp_term(struct nn_stcp *self) { nn_assert_state(self,NN_STCP_STATE_IDLE); nn_fsm_event_term(&self->done); nn_msg_term(&self->outmsg); nn_msg_term(&self->inmsg); nn_pipebase_term(&self->pipebase); nn_streamhdr_term(&self->streamhdr); nn_fsm_term(&self->fsm); }
void nn_slibfabric_term (struct nn_slibfabric *self) { nn_assert_state (self, NN_SLIBFABRIC_STATE_IDLE); nn_fsm_event_term (&self->done); nn_msg_term (&self->outmsg); nn_msg_term (&self->inmsg); nn_pipebase_term (&self->pipebase); nn_streamhdr_term (&self->streamhdr); nn_fsm_term (&self->fsm); }
void nn_sws_term (struct nn_sws *self) { nn_assert_state (self, NN_SWS_STATE_IDLE); nn_fsm_event_term (&self->done); nn_msg_term (&self->outmsg); nn_msg_array_term (&self->inmsg_array); nn_pipebase_term (&self->pipebase); nn_wshdr_term (&self->wshdr); nn_fsm_term (&self->fsm); }
void nn_sipc_term (struct nn_sipc *self) { nn_assert (self->state == NN_SIPC_STATE_IDLE); nn_fsm_event_term (&self->done); nn_msg_term (&self->outmsg); nn_msg_term (&self->inmsg); nn_pipebase_term (&self->pipebase); nn_streamhdr_term (&self->streamhdr); nn_fsm_term (&self->fsm); }
void nn_stream_term (struct nn_stream *self) { /* Close the messages in progress. */ nn_msg_term (&self->inmsg); nn_msg_term (&self->outmsg); nn_timer_term (&self->hdr_timeout); nn_pipebase_term (&self->pipebase); /* Return control to the parent state machine. */ nn_usock_setsink (self->usock, self->original_sink); }