Datasnap.Win.ObjBrkr.TSimpleObjectBroker.GetPortForComputer
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Datasnap.Win.ObjBrkr.pas Datasnap.Win.ObjBrkr.hpp
| |
Unit: Datasnap.Win.ObjBrkr | |
Parent: TSimpleObjectBroker |
Delphi
function GetPortForComputer(const ComputerName: string): Integer; override;
C++
virtual int __fastcall GetPortForComputer(const System::UnicodeString ComputerName);
Description
Returns a port number for connecting to a specified remote server.
Socket connection components call GetPortForComputer to get a value for their Port property. The ComputerName parameter specifies a Host name or IP address that was returned by GetComputerForGUID or GetComputerForProgID. This value is used to identify a server in the list maintained by the Servers property.
There are no connection components that explicitly use a Port number except on the Windows product. GetPortForComputer is included in TCustomObjectBroker to allow for the possibility of connection components that use an explicit Port number. The ComputerName parameter is a Host name or IP address that is returned by the GetComputerForGUID or GetComputerForProgID method. This value is used to identify a server in the list maintained by the Servers property.