EtsT_Client_State_Read_Proc

Note: Requires OPNET Development Kit

Abstract

Callback: Called when the client state needs to be read from disk storage with a scenario.

Syntax

<state_read_proc_name> (block_hndl)
Argument Type Description
block_hndl EtsT_State_Block_Handle The state block that was read from disk.

Return Type

void *

The new client state that has been filled from the state block.

ets_pstate.h

Details

When an object with an installed client state is read from disk, the corresponding state_read_proc (registered by Ets_Client_State_Handlers_Register()) is called. This callback should allocate the needed memory for the object's client state, read the needed information from the block using the Ets_State_Block_ read functions, and fill in the client state memory. The callback should return a pointer to this new state, which the ETS kernel then will install on the object.

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