class NetworkContext

Defined at line 4045 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/hlcpp/fuchsia/netemul/network/cpp/fidl.h

Main entry point to manage virtual networks and endpoints.

Every new connection to NetworkContext provides access to a an isolated

namespace for networks and endpoints. `Clone` is the only means by which a

client can acquire a new connection to the same network context.

Public Members

static const char[] Name_

Public Methods

void ~NetworkContext ()
void Clone (::fidl::InterfaceRequest< ::fuchsia::netemul::network::NetworkContext> network_context)
void GetNetworkManager (::fidl::InterfaceRequest< ::fuchsia::netemul::network::NetworkManager> net_manager)
void GetEndpointManager (::fidl::InterfaceRequest< ::fuchsia::netemul::network::EndpointManager> endp_manager)
void Setup (::std::vector< ::fuchsia::netemul::network::NetworkSetup> networks, SetupCallback callback)

Creates a collection of networks described by `networks`.

`status` is `ZX_OK` for success

`setup_handle` is a resource that references and maintains the lifecycle of

the created networks and endpoints.