/* * 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); }
/* * 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; }
/* * 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); }