class Channel
Defined at line 3025 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/hlcpp/fuchsia/bluetooth/cpp/fidl.h
A duplex channel for sending/recieving [`Packet`]s. This protocol also
serves as a token to keeping the `Channel` open. Closing this protocol (and
the associated `socket` for BR/EDR channels) will close the underlying
channel.
Public Methods
void ~Channel ()
void Send (::std::vector< ::fuchsia::bluetooth::Packet> packets, SendCallback callback)
Send multiple packets of data over the channel. Only one `Send`
may be pending at a time.
void Receive (ReceiveCallback callback)
Hanging get that waits for inbound packets. Only one `Receive`
may be pending at a time.
void WatchChannelParameters (WatchChannelParametersCallback callback)
For RFCOMM channels, this will not return and calls will hang
indefinitely.
For BR/EDR L2CAP connection-oriented channels this will currently not
return and calls will hang indefinitely. The initial channel parameters
are provided in [`fuchsia.bluetooth.bredr/Channel`].
For LE L2CAP connection-oriented channels, the first call will
immediately return the parameters of the remote side of the channel.
Subsequent calls will hang until the [`ChannelParameters`] change, at
which point it will return the new parameters, including those that have
not changed.
Protected Methods
void handle_unknown_method (uint64_t ordinal, bool method_has_response)
Friends
class Channel_Stub