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.
Header
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.