Exemplo n.º 1
0
/*
 * Free a Telnet Control Block.
 */
static void
telnet_free(telnet_t *tp)
{
    nq_free(tp->t_rawq);
    nq_free(tp->t_canq);
    if (tp->t_optq != NULL)
	nq_free(tp->t_optq);
    nq_free(tp->t_outq);
    free(tp);
}
Exemplo n.º 2
0
/*
 * Free a Telnet Control Block.
 */
static void
telnet_free(telnet_t *tp)
{
    nq_free(tp->t_rawq);
    nq_free(tp->t_canq);
    if (tp->t_optq != NULL)
	nq_free(tp->t_optq);
    nq_free(tp->t_outq);
    if (tp->task)
	remove_task(tp->task);
    tp->task = NULL;
    free(tp);
}
Exemplo n.º 3
0
/*
 * Close the UDP Manager session and free the associated resources.
 */
static void
udpsvc_shutdown(ndesc_t *nd, udpsvc_t *svc)
{
    (void)close(nd_fd(nd));
    nq_free(svc->nq);
    nd_detach(nd);
    free(svc);
}
Exemplo n.º 4
0
/*
 * Close the UDP Manager session and free the associated resources.
 */
static void
udpsvc_shutdown(ndesc_t *nd, nqueue_t *nq)
{
    (void)close(nd_fd(nd));
    nq_free(nq);
    nd_detach(nd);
    udpsvc_nd = NULL;
}