Exemplo n.º 1
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.º 2
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;
}
Exemplo n.º 3
0
/*
 * Close a Telnet session and free the associated resources.
 */
static void
telnet_shutdown(ndesc_t *nd, telnet_t *tp)
{
    if (tp != NULL)
    {
	telnet_flush(tp);
	telnet_free(tp);
    }

    (void)close(nd_fd(nd));
    nd_detach(nd);
}