template <typename Protocol, typename Transport>

class UnownedTransportEnd

Defined at line 64 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

Base class for the unowned client or server endpoint of a FIDL handle.

Protected Members

fidl_handle_t handle_

Public Methods

void UnownedTransportEnd<Protocol, Transport> (fidl_handle_t h)

Creates an |UnownedTransportEnd| from a raw handle.

Prefer only using this constructor when interfacing with C APIs.

Defined at line 72 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

void UnownedTransportEnd<Protocol, Transport> (const UnownedType & h)

Creates an |UnownedTransportEnd|. In the case of the channel transport, it

will construct the |UnownedTransportEnd| from a |zx::unowned_channel|.

Using this constructor is discouraged since it tends to erase the actual

type of the underlying protocol.

Consider declaring the type of the input variable as a

|fidl::UnownedTransportEnd

<Protocol

, Transport>| instead.

Defined at line 81 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

void UnownedTransportEnd<Protocol, Transport> (const UnownedTransportEnd<Protocol, Transport> & other)

The unowned transport end is copyable - it simply copies the handle value.

Defined at line 84 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

UnownedTransportEnd<Protocol, Transport> & operator= (const UnownedTransportEnd<Protocol, Transport> & other)

Defined at line 85 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

bool is_valid ()

Whether the underlying handle is valid.

Defined at line 88 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

bool operator bool ()

Defined at line 89 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h

UnownedType handle ()

The underlying handle.

Defined at line 92 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h