template <>
class Server
Defined at line 1140 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/natural_messaging.h
Public Methods
void AddPort (AddPortRequest & request, AddPortCompleter::Sync & completer)
Adds a port to the network.
+ request `port` port to be added.
+ request `interface` provides control over the interface.
void GetConfig (GetConfigCompleter::Sync & completer)
Gets network configuration.
void GetName (GetNameCompleter::Sync & completer)
Gets network name.
void Server ()
Defined at line 1143 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/natural_messaging.h
void SetConfig (SetConfigRequest & request, SetConfigCompleter::Sync & completer)
Updates network configuration.
void AttachEndpoint (AttachEndpointRequest & request, AttachEndpointCompleter::Sync & completer)
Attaches endpoint with given name to network.
void RemoveEndpoint (RemoveEndpointRequest & request, RemoveEndpointCompleter::Sync & completer)
Removes endpoint with given name from network.
void CreateFakeEndpoint (CreateFakeEndpointRequest & request, CreateFakeEndpointCompleter::Sync & completer)
Injects a fake endpoint.
void StartCapture (StartCaptureRequest & request, StartCaptureCompleter::Sync & completer)
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.
void StopCapture (StopCaptureCompleter::Sync & completer)
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.
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~Server ()
Defined at line 1144 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/natural_messaging.h