template <typename Protocol, typename Transport>
class TransportEnd
Defined at line 20 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
Base class for the owned client or server endpoint of a FIDL handle.
Protected Members
OwnedType handle_
Public Methods
void TransportEnd<Protocol, Transport> ()
Creates a |TransportEnd| whose underlying handle is invalid.
Both optional and non-optional endpoints in FIDL declarations map
to this same type. If this |TransportEnd| is passed to a method or FIDL
protocol that requires valid handles, those operations will fail at
run-time.
Defined at line 34 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
void TransportEnd<Protocol, Transport> (OwnedType handle)
Creates an |TransportEnd| that wraps the given |handle|.
The caller must ensure the |handle| is a server endpoint speaking
a protocol compatible with |Protocol|.
Defined at line 39 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
void TransportEnd<Protocol, Transport> (TransportEnd<Protocol, Transport> && other)
Defined at line 41 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
TransportEnd<Protocol, Transport> & operator= (TransportEnd<Protocol, Transport> && other)
Defined at line 42 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 45 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
bool operator bool ()
Defined at line 46 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
void reset (fidl_handle_t handle)
Close the underlying handle if any,
and reset the object back to the specified value.
Defined at line 50 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
UnownedType handle ()
The underlying handle.
Defined at line 53 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h
OwnedType TakeHandle ()
Transfers ownership of the underlying handle to the caller.
Defined at line 56 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/internal/endpoints.h