System.Tether.NetworkAdapter.TTetheringNetworkManagerCommunicationThread.Execute
Delphi
procedure Execute; override;
C++
virtual void __fastcall Execute(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Tether.NetworkAdapter.pas System.Tether.NetworkAdapter.hpp |
System.Tether.NetworkAdapter | TTetheringNetworkManagerCommunicationThread |
Description
Procedure that executes when TTetheringNetworkManagerCommunicationThread is run.
The function iterates through the range of ports (specified in the public constants of TTetheringNetworkAdapter: FirstManagerPort and LastManagerPort) until the instance of a network server and an UDP network server, that was created in the constructor, is started on a port. Then a "new manager" command is broadcasted on a local network and the thread waits for a response. When the thread is terminated, the network server and the UDP network server are stopped.
Exceptions
A call to Execute may raise the following exception:
Exception | Exception.Message | Scenarios |
---|---|---|
Error Opening Network Server. |
The network server cannot be started on any port in the range. |