System.Net.Socket.TSocket.LookupService
Delphi
function LookupService(const service: string): Integer;
C++
int __fastcall LookupService(const System::UnicodeString service);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Returns a port number matching the specified service name.
Known service names and matching ports depend on the operating system where your application is running.
If the operating system does not recognize the specified service name, LookupService returns 0
.