template <>
class WireServer
Defined at line 801 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/cpp/fidl/fuchsia.bluetooth/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_bluetooth::Channel>|
and |::fidl::ServerEnd
<
::fuchsia_bluetooth::Channel>|).
Public Methods
void Send (::fuchsia_bluetooth::wire::ChannelSendRequest * request, SendCompleter::Sync & completer)
Send multiple packets of data over the channel. Only one `Send`
may be pending at a time.
void Receive (ReceiveCompleter::Sync & completer)
Hanging get that waits for inbound packets. Only one `Receive`
may be pending at a time.
void WatchChannelParameters (WatchChannelParametersCompleter::Sync & completer)
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.
void WireServer ()
Defined at line 804 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/cpp/fidl/fuchsia.bluetooth/cpp/wire_messaging.h
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 805 of file fidling/gen/sdk/fidl/fuchsia.bluetooth/fuchsia.bluetooth/cpp/fidl/fuchsia.bluetooth/cpp/wire_messaging.h