API:System.Tether.TCPProtocol.TTetheringTCPProtocol.Create
Delphi
constructor Create(const AnAdapter: TTetheringAdapter; AsClient: Boolean = False); override;
C++
__fastcall virtual TTetheringTCPProtocol(System::Tether::Manager::TTetheringAdapter* const AnAdapter, bool AsClient);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Tether.TCPProtocol.pas System.Tether.TCPProtocol.hpp |
System.Tether.TCPProtocol | TTetheringTCPProtocol |
Description
Creates an instance of TTetheringProtocol.
System.Tether.TCPProtocol.TTetheringTCPProtocol.Create inherits from System.Tether.Manager.TTetheringProtocol.Create. All content below this line refers to System.Tether.Manager.TTetheringProtocol.Create.
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.