System.Tether.Manager.TTetheringProtocol.Create
Delphi
constructor Create(const AnAdapter: TTetheringAdapter; AsClient: Boolean = False); virtual; abstract;
C++
__fastcall virtual TTetheringProtocol(TTetheringAdapter* const AnAdapter, bool AsClient) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringProtocol |
Description
Creates an instance of TTetheringProtocol.
Create receives the following parameters:
AnAdapter
is the adapter that the protocol will use to obtain information necessary to establish the connection between peers.AsClient
determines whether the end of the connection that this instance of TTetheringProtocol handles behaves as a client (True
) or as a server (False
, default).
This is an abstract method. You must override this function if you create a subclass for TTetheringProtocol.