System.Net.Socket.TNetEndpoint.LookupService

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function LookupService(const Service: string; SocketType: TSocketType = TSocketType.TCP): Word; static;

C++

static System::Word __fastcall LookupService(const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0));

Properties

Type Visibility Source Unit Parent
function public
System.Net.Socket.pas
System.Net.Socket.hpp
System.Net.Socket TNetEndpoint

Description

Searches for the corresponding port number of the service provided and returns that port number.

The accepted parameters are:

  • Service: The name of a service that this method will use to search for the corresponding port number.
  • SocketType: Optional, default is TCP.

See Also