Add a function to pull the attached netmgr from inside the executed
task. This is needed for any task that needs to call the netmgr API.
*
*/
+isc_nm_t *
+isc_task_getnetmgr(isc_task_t *task);
+
void *
isc_task_gettag(isc_task_t *task);
/*%<
return (task->tag);
}
+isc_nm_t *
+isc_task_getnetmgr(isc_task_t *task) {
+ REQUIRE(VALID_TASK(task));
+
+ return (task->manager->netmgr);
+}
+
/***
*** Task Manager.
***/
isc_socketmgr_setreserved
isc_socketmgr_setstats
isc_task_getname
+isc_task_getnetmgr
isc_task_gettag
isc_task_ready
isc_task_run