System.Tether.Manager.TTetheringAdapter.GetClientPeer
Delphi
function GetClientPeer(const ProtocolId: TTetheringProtocolType): TTetheringCustomComm; virtual; abstract;
C++
virtual System::Tether::Comm::TTetheringCustomComm* __fastcall GetClientPeer(const TTetheringProtocolType ProtocolId) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringAdapter |
Description
Returns an object that a protocol of the specified protocol type can use for connections as a client.
GetClientPeer provides a communications object of a class that protocols of the specified protocol type support.
For example, if the protocol type is "TCP" (the type of TTetheringTCPProtocol),
GetClientPeer must provide an instance of the corresponding communication class (TTetheringCustomComm
):
- A network communication class.
- Classic Bluetooth communication class.
If your adapter does not support the specified protocol type, GetClientPeer returns null.
See Also
- System.Tether.Manager.TTetheringProtocolType
- System.Tether.Manager.TTetheringProtocol.GetProtocolType
- System.Tether.Manager.TTetheringAdapter.GetServerPeer
- System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetClientPeer
- System.Tether.NetworkAdapter.TTetheringNetworkAdapterCommon.GetClientPeer