nrac_network_create()

Abstract

Create a network context in which resources and resource consumers can be deployed.

Syntax

nrac_network_create (name, resource_unit_name, client_state_ptr)
Argument Type Description
name const char * name of the network (used only for reporting)
resource_unit_name const char * name of the unit of measure for resources (e.g., Mbps)
client_state_ptr void * a way to link the network to other state in the client application. Use OPC_NIL if not needed.

Return Type

Nrac_Net_Handle

Handle for the new network; required by certain other functions in the NRAC package.

nrac.h

Details

A Network is a container for a collection of resources and consumers. Events can also be defined to occur within the network. The network provides a scope for creating these objects. By the network handle returned by this function, you can separately manage multiple network contexts (e.g., for multiple scenarios) simultaneously within your application.

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