System.Tether.Manager.TTetheringProtocols.GetProtocolInstance
Object Pascal
class function GetProtocolInstance(const AProtocolType: TTetheringProtocolType; const AnAdapter: TTetheringAdapter; AsClient, Started: Boolean): TTetheringProtocol;
C++
__classmethod TTetheringProtocol* __fastcall GetProtocolInstance(const System::UnicodeString AProtocolType, TTetheringAdapter* const AnAdapter, bool AsClient, bool Started);
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringProtocols |
Beschreibung
Erstellt eine Instanz eines Protokolls des angegebenen Typs und gibt sie zurück.
Wenn kein Protokoll mit <AProtocolType> registriert ist, gibt GetProtocolInstance null zurück.
<AsClient> legt fest, ob die erstellte Instanz nur als Client (True
) oder sowohl als Client als auch als Server (False
) arbeiten muss.
Exceptions
Informationen über Exceptions, die ausgelöst werden könnten, wenn Sie GetProtocolInstance aufrufen, um eine Instanz von TTetheringTCPProtocol zu ermitteln, finden Sie unter TTetheringTCPProtocol.StartCommunication, wenn <Started> den Wert True
hat.