Ets_Nt_Load_Callback_Register()

Note: Requires OPNET Development Kit

Abstract

Specifies a function to be invoked any time a network model is read.

Syntax

Ets_Nt_Load_Callback_Register (callback_func_ptr, callback_name, callback_state_ptr)
Argument Type Description
callback_func_ptr EtsT_Nt_Load_Callback Callback function to register
callback_name const char * Name associated with the callback (used to deregister).
callback_state_ptr void * Associated state, can be NULL.

Return Type

void

No return value.

ets_api_nt_cback.h

Details

Associates the specified function with the network load operation. The function will be invoked every time a network model is read in, just before the model is displayed. This operation replaces any previously registered callback of the same callback_name. You can register multiple callbacks with this function, in which case each will be called in turn when a model is loaded.

The name provided with the callback is used only for matching in a call to Ets_Nt_Load_Callback_Deregister().

The callback function prototype is given in EtsT_Nt_Load_Callback.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com