System.Net.Socket.TSocket.LookupService

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also