void stream_free(struct Stream* self)
{
    if (!self) return;
    tmr_free(self->tmr_memcpy);
    close(self->socket_handle);
    free(self->socket_buffer);
    free(self);
}
Beispiel #2
0
static void sfr_rel_alive (RemWriter_t *rwp)
{
	rwp->rw_peer_alive = 1;
	RW_SIGNAL (rwp, "=> ALIVE");
	RALIVE_TMR_STOP (rwp, rwp->rw_hbrsp_timer);
	RALIVE_TMR_FREE (rwp);
	tmr_free (rwp->rw_hbrsp_timer);
	rwp->rw_hbrsp_timer = NULL;
}