template <>

class WireSyncClientImpl

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

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_netemul_network::Network>|,

avoiding setting up a client.

Public Methods

::fidl::OneWayStatus AddPort (::fidl::ClientEnd< ::fuchsia_hardware_network::Port> && port, ::fidl::ServerEnd< ::fuchsia_net_virtualization::Interface> && interface)

Adds a port to the network.

+ request `port` port to be added.

+ request `interface` provides control over the interface.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_netemul_network::Network::GetConfig> GetConfig ()

Gets network configuration.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_netemul_network::Network::GetName> GetName ()

Gets network name.

Allocates 304 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_netemul_network::Network::SetConfig> SetConfig (::fuchsia_netemul_network::wire::NetworkConfig config)

Updates network configuration.

Allocates 128 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_netemul_network::Network::AttachEndpoint> AttachEndpoint (::fidl::StringView name)

Attaches endpoint with given name to network.

Allocates 312 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_netemul_network::Network::RemoveEndpoint> RemoveEndpoint (::fidl::StringView name)

Removes endpoint with given name from network.

Allocates 312 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::OneWayStatus CreateFakeEndpoint (::fidl::ServerEnd< ::fuchsia_netemul_network::FakeEndpoint> && ep)

Injects a fake endpoint.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_netemul_network::Network::StartCapture> StartCapture (::fidl::StringView name)

Starts capturing packet in this network.

The packet capture will be stored at `/custom_artifacts/{name}.pcapng`.

Returns [`ZX_ERR_ALREADY_EXISTS`] if the capturing is already started

in this network.

Allocates 312 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_netemul_network::Network::StopCapture> StopCapture ()

Stops capturing packets. This function is guaranteed to succeed.

The packet capture will be stored in the file at the path chosen when

capturing started. The packet capture will stop automatically once the

network is destroyed regardless of whether this method is called.

Allocates 32 bytes of message buffer on the stack. No heap allocation necessary.