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 262 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void ~Endpoint ()

Defined at line 279 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 275 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void GetConfig (GetConfigCallback callback)

fidl interface implementations:

Defined at line 281 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void GetName (GetNameCallback callback)

Defined at line 287 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void SetLinkUp (bool up, SetLinkUpCallback callback)

Defined at line 289 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void GetPort (fidl::InterfaceRequest<fuchsia::hardware::network::Port> port)

Defined at line 293 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void GetProxy (fidl::InterfaceRequest<FProxy> proxy)

Defined at line 297 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 301 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

void ServeDevice (fidl::InterfaceRequest<fuchsia::hardware::network::Device> device)

Defined at line 304 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 312 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 325 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 337 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

Protected Methods

void Bind (fidl::InterfaceRequest<FEndpoint> req)

Defined at line 308 of file ../../src/connectivity/network/testing/netemul/network-context/lib/endpoint.cc

Friends

class EndpointManager