System.Net.Socket.TNetEndpoint.SetPort

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetPort(const Service: string; SocketType: TSocketType = TSocketType.TCP); overload;

C++

void __fastcall SetPort(const System::UnicodeString Service, TSocketType SocketType = (TSocketType)(0x0))/* overload */;

Properties

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

Description

Setter for the Port property.

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