EsaT_Prompt_Callback_Proc

Abstract

Callback: Called when the Riverbed Modeler simulation needs to prompt for a value.

Syntax

<prompt_callback_proc_name> (buf_size, prompt_ptr, buf_ptr, state_ptr)
Argument Type Description
buf_size int * area to be filled with the length of the input string in buf_ptr
prompt_ptr const char * text for the input prompt
buf_ptr char * area to be filled with the input string (512 characters maximum)
state_ptr void * client data specified when the callback was registered

Return Type

int

Return 1 if the input was read successfully; -1 otherwise.

esa.h

Details

This callback function is registered by Esa_Text_Prompt_Callback_Register().

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