template <typename Protocol>

class ServerEnd

Defined at line 224 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/transport_channel.h

The server endpoint of a FIDL handle.

The remote (client) counterpart of the handle expects this end of the

handle to serve the protocol represented by |Protocol|. This type is the

dual of |ClientEnd|.

|ServerEnd| is thread-compatible: the caller should not use the underlying

handle (e.g. sending an event) while the server-end object is being mutated

in a different thread.

Public Methods

const zx::channel & channel ()

Defined at line 231 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/transport_channel.h

zx::channel & channel ()

Defined at line 232 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/transport_channel.h

zx::channel TakeChannel ()

Transfers ownership of the underlying channel to the caller.

Defined at line 235 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/transport_channel.h

zx_status_t Close (zx_status_t epitaph_value)

Sends an epitaph over the underlying channel, then closes the channel.

An epitaph is a final optional message sent over a server-end towards

the client, before the server-end is closed down. See the FIDL

language spec for more information about epitaphs.

The server-end must be holding a valid underlying channel.

Returns the status of the channel write operation.

Defined at line 244 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/transport_channel.h