Esa_Init()

Abstract

Performs the main initialization of the ESA library.

Syntax

Esa_Init (argc, argv, options, esa_state_pptr)
Argument Type Description
argc int size of argv array
argv char ** array of strings, typically as provided to the main() entry point
options int one of:
- ESAC_INIT_OPTS_TRACE—trace all subsequent ESA calls (similar to the tracing of kernel procedures in ODB)
- ESAC_INIT_OPTS_DEBUG—run the simulation with the ODB interface
- ESAC_OPTS_NONE—no special options
esa_state_pptr EsaT_State_Handle * will be filled with an ESA opaque data structure used by the other ESA APIs.

Return Type

EsaT_Compcode

EsaC_Comp_Success if initialization succeeds; EsaC_Comp_Failure otherwise.

esa.h

Details

This function performs the main initialization of the ESA library. It sets up the Riverbed Modeler environment based on the argument list, loads preferences files (.prefs, .ef), and so on.

You must call this function before using any other ESA functions.

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