class Endpoint
Defined at line 23 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.h
Public Members
static const uint8_t kPortId
static FrameType kFrameType
Public Methods
const std::string & name ()
Defined at line 40 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.h
void Endpoint (NetworkContext * context, std::string name, Config config)
Defined at line 267 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void ~Endpoint ()
Defined at line 284 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
zx_status_t Startup (const NetworkContext & context, bool start_online)
Sets up the endpoint based on the configuration
Defined at line 280 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void GetConfig (GetConfigCallback callback)
fidl interface implementations:
Defined at line 286 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void GetName (GetNameCallback callback)
Defined at line 292 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void SetLinkUp (bool up, SetLinkUpCallback callback)
Defined at line 294 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void GetPort (fidl::InterfaceRequest<fuchsia::hardware::network::Port> port)
Defined at line 298 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void GetProxy (fidl::InterfaceRequest<FProxy> proxy)
Defined at line 302 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void ServeController (fidl::InterfaceRequest<fuchsia::device::Controller> controller)
fuchsia.netemul.network/DeviceProxy FIDL APIs.
Defined at line 306 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void ServeDevice (fidl::InterfaceRequest<fuchsia::hardware::network::DeviceInstance> device)
Defined at line 309 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
zx_status_t InstallSink (data::BusConsumer::Ptr sink, data::Consumer::Ptr * src)
Installs a data sink on endpoint.
Data sinks will be notified via ->Consume of any data that is sent to the
endpoint.
Defined at line 318 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
zx_status_t RemoveSink (data::BusConsumer::Ptr sink, data::Consumer::Ptr * src)
Removes a data sink, if installed.
Defined at line 331 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
void SetClosedCallback (EndpointClosedCallback cb)
Closed callback will be called whenever the endpoint dies due to:
a) Its backing has disappeared or
b) All FIDL bindings were closed.
Defined at line 343 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
Protected Methods
void Bind (fidl::InterfaceRequest<FEndpoint> req)
Defined at line 314 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc
Friends
class EndpointManager