template <>
class WireServer
Defined at line 2261 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_netemul_network::FakeEndpoint>|
and |::fidl::ServerEnd
<
::fuchsia_netemul_network::FakeEndpoint>|).
Public Methods
void WireServer ()
Defined at line 2264 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/wire_messaging.h
void Write (::fuchsia_netemul_network::wire::FakeEndpointWriteRequest * 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 ~WireServer ()
Defined at line 2265 of file fidling/gen/src/connectivity/network/testing/netemul/network-context/fidl/network/cpp/fidl/fuchsia.netemul.network/cpp/wire_messaging.h