System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetServerPeer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetServerPeer(const ProtocolId: TTetheringProtocolType): TTetheringCustomServerComm; override;

C++

virtual System::Tether::Comm::TTetheringCustomServerComm* __fastcall GetServerPeer(const System::UnicodeString ProtocolId);

Properties

Type Visibility Source Unit Parent
function public
System.Tether.BluetoothAdapter.pas
System.Tether.BluetoothAdapter.hpp
System.Tether.BluetoothAdapter TTetheringBluetoothAdapter

Description

Returns an object that a protocol of the specified protocol type can use for connections as a server over Classic Bluetooth.

GetServerPeer provides an object of a class that protocols of the specified protocol type support. GetServerPeer must provide an instance of TTetheringCustomComm to be used as a server over Classic Bluetooth communications.

If your adapter does not support the specified protocol type, GetServerPeer returns null.

See Also