System.Tether.NetworkAdapter.TTetheringNetworkManagerCommunicationThread Methods

From RAD Studio API Documentation
Jump to: navigation, search

InheritedProtected
AddProfilesprotectedHandles a string with data about remote profiles sent by a remote adapter in response to a profiles discovery request by the adapter of your communication thread.
AfterConstructionpublicExecutes the thread when the thread is created with CreateSuspended set to false.
BeforeDestructionpublic
BroadcastCommandprotectedSends a command string to remote network communication threads.
CancelDiscoverProfilesTimerprotectedStops the timer created at the beginning of the profile discovery.
CheckDisposedprotected
CheckTerminatedpublicIndicates whether the thread has been asked to terminate.
CheckThreadErrorprotectedChecks whether an error appears on a thread operation.
ClassInfopublicReturns a pointer to the run-time type information (RTTI) table for the object type.
ClassNamepublicReturns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
ClassNameIspublicDetermines whether an object is of a specific type.
ClassParentpublicReturns the type of the immediate ancestor of a class.
ClassTypepublicReturns the class reference for the object's class.
CleanupInstancepublicPerforms finalization on long strings, variants, and interface variables within a class.
CommandStrpublicReturns a string with the formatted command that is sent to the remote manager.
CommunicationThreadInitializedprotectedSets the FEventAdapterSync of the adapter that owns this communications thread.
CreatepublicCreates an instance of TTetheringManagerCommunicationThread.
CreateAnonymousThreadpublicCreates an instance of an internally derived thread.
CreateDiscoverProfilesTimerprotectedCreates an internal timer with the specified timeout.
CreateManagerInfoprotectedRecords the received information about a remote manager.
DefaultHandlerpublicProvides the interface for a method that processes message records.
DestroypublicDestroys the thread object and releases the memory allocated to it.
DestroyDiscoverProfilesTimerprotectedStops the internal timer created for discovery profiles in a remote manager.
DispatchpublicCalls message-handling methods for the object, based on the contents of the Message parameter.
DisposeOfpublicDisposeOf forces the execution of the destructor code in an object.
DoOnReceiveDataprotectedHandles incoming data every time that new data is received from a remote network communication thread.
DoSendCommandprotectedSends a command string to a remote network communication thread.
DoTerminateprotectedGenerates an OnTerminate event.
EqualspublicChecks whether the current instance and the Obj parameter are equal.
ExecutepublicDefines the logic of the network communication thread.
FieldAddresspublicReturns the address of a published object field.
ForceQueuepublicQueues the execution of a method call within the main thread.
FreepublicDestroys an object and frees its associated memory, if necessary.
FreeInstancepublicDeallocates memory allocated by a previous call to the NewInstance method.
GenerateRandomStringprotectedReturns a random string for the given connection of the TTetheringAdapter.
GetCPUUsagepublicCalculates the average time that the CPU is busy executing user code and kernel code.
GetDisposedprotectedGetter for the Disposed property.
GetHashCodepublicReturns an integer containing the hash code.
GetInterfacepublicRetrieves a specified interface.
GetInterfaceEntrypublicReturns the entry for a specific interface implemented in a class.
GetInterfaceTablepublicReturns a pointer to a structure containing all of the interfaces implemented by a given class.
GetNetworkInfoprotectedReturns the stored data about the status of the connection.
GetNetworkInfoByManagerprotectedReturns the stored data about the status of the connection with a remote manager.
GetRandomStringprotectedGetter of the random string of a connection.
GetRemoteConnectionStringprotectedReturns the remote connection string of the remote TTetheringNetworkAdapter for a given connection.
GetStateprotectedReturns the current pairing state with a remote manager
GetSystemTimespublic
GetTickCountpublicReturns the number of milliseconds that have elapsed since the system was started.
InheritsFrompublicDetermines the relationship of two object types.
InitInstancepublicInitializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer.
InstanceSizepublicReturns the size in bytes of each instance of the object type.
IsDiscoveringProfilesprotectedChecks if the adapter is performing profile discovery.
IsListeningprotectedIndicates whether the communication thread is listening for connections (True) or not (False).
MergeConnectionStringprotectedReturns a connection string with the IP address of AConnectionWithIP and the port of AConnectionWithPort.
MethodAddresspublicReturns the address of a class method by name.
MethodNamepublicReturns the name of a class method by address.
NameThreadForDebuggingpublicUse NameThreadForDebugging to name a thread that was created without a name. Also, use this method to rename a specified thread.
NewInstancepublicAllocates memory for an instance of an object type and returns a pointer to that new instance.
ProcessResponseprotectedHandles command strings from the manager command queue, and relays that information to its adapter.
QualifiedClassNamepublicReturns the qualified name of the class.
QueuepublicExecutes a method call within the main thread.
RemoveQueuedEventspublicRemove queued method calls.
Resume (deprecated)publicRestarts the execution of a suspended thread. Resume was intended to be used by debuggers and is deprecated in RAD Studio XE, in the year 2010.
SafeCallExceptionpublicHandles exceptions in methods declared using the safecall calling convention.
SendCommandpublicCalls DoSendCommand to send data to a remote adapter.
SetFreeOnTerminateprotected
SetManagerIdprotectedSets the remote manager identifier in the TNetworkInfo
SetReturnValuepublicSets the current thread's return value.
SetStateprotectedSets the new pairing state with a remote manager
ShutdownThreadprotected
SleeppublicSuspend the execution of the thread for a specified amount of time.
SpinWaitpublicBlocks the execution of the thread in a spin-wait loop.
StartpublicStarts the execution of a thread.
StartListeningprotectedStarts listening for incoming connections on the specified port (ATarget), and returns True on success or False otherwise.
StaticQueue (deprecated)publicAsynchronously executes a method call within the main thread.
StaticSynchronize (deprecated)publicExecutes a method call within the main thread.
StopListeningprotectedStops listening for incoming connections.
Suspend (deprecated)publicPauses a running thread. Suspend was intended to be used by debuggers and is deprecated in RAD Studio XE, in the year 2010.
SynchronizepublicExecutes a method call within the main thread.
TerminatepublicSignals the thread to terminate by setting the Terminated property to true.
TerminatedSetprotected
ToStringpublicReturns a string containing the class name.
UnitNamepublicReturns the name of the unit where the class is defined.
UnitScopepublicReturns the class's unit scope.
WaitCommThreadInitializationprotectedWaits for FEventAdapterSync, which is initialized in CommunicationThreadInitialized.
WaitForpublicWaits for the thread to terminate and then returns the value of the ReturnValue property.
YieldpublicPasses the execution to another thread.