op_intrpt_state_ptr_get()

Abstract

Obtains the client state associated with the current event.

Syntax

op_intrpt_state_ptr_get ()
Argument Type Description
no arguments

Return Type

void *

Pointer to the client state associated with the current event.

Example

/* get current state info */
My_Model_Data * data_ptr = op_intrpt_state_ptr_get();

Details

Because the Simulation Kernel does not know anything about the content of a client state, you must be sure to get the state information with the appropriate data type.

Purpose

Provides a mechanism for getting the state information associated with the current event. This information is the client state that was installed with op_ev_state_install(). The same information can be obtained with the op_ev_state() KP, as follows:

	op_ev_state (op_ev_current() )

Errors

  • Program Abort: KP requires process context.

Reference

  • None

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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