template <>

class Server

Defined at line 657 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 Server ()

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

void Write (WriteRequest & request, WriteCompleter::Sync & completer)

Writes a frame to the network.

void Read (ReadCompleter::Sync & completer)

Reads a single frame from the network.

Blocks until new data is available to be read. FakeEndpoint will keep a limited amount of

frames to be read, dropping the oldest ones if the data is not fetched fast enough. The

number of dropped frames since the last call to `Read` is returned in `dropped_frames`.

Issuing a second `Read` request when the first one is still pending will cause the channel

to be closed with `ZX_ERR_BAD_STATE`.

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 661 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/natural_messaging.h