System.Tether.Manager.TTetheringProtocol.CreateInstance

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

class function CreateInstance(const AnAdapter: TTetheringAdapter; AsClient: Boolean): TTetheringProtocol; virtual; abstract;

C++

virtual __classmethod TTetheringProtocol* __fastcall CreateInstance(TTetheringAdapter* const AnAdapter, bool AsClient) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager TTetheringProtocol

Description

Creates an instance of the protocol and returns it.

CreateInstance 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 of TTetheringProtocol.

See Also