KnownProtocols

Overview

The KnownProtocols class represents some common protocols (ftp, ssh, telnet, smtp, http, pop3, https) and their default ports which are used by the UrlParser. If you want UrlParser to make out any other protocol you can register this protocol by using RegisterProtocol method.

Location

  • Reference:
    • RemObjects.InternetPack.dll  .NET, .NET Core 5.0, .NET Standard 2.0
    • RemObjects.InternetPack.fx  Island
    • libRemObjects.InternetPack.fx  Toffee
  • Namespace: RemObjects.InternetPack.Http


Class Methods


GetProtocolDefaultPort  virtual

Returns the default port number for the specified protocol.

 

class method GetProtocolDefaultPort(protocol: String): Int32

 

static Int32 GetProtocolDefaultPort(String protocol)

 

static func GetProtocolDefaultPort(_ protocol: String) -> Int32

 

Shared Function GetProtocolDefaultPort(protocol As String) As Int32

Parameters:

  • protocol:

RegisterProtocol  virtual

Registers a new protocol and its default port for the UrlParser.

 

class method RegisterProtocol(name: String; port: Int32)

 

static void RegisterProtocol(String name, Int32 port)

 

static func RegisterProtocol(_ name: String, _ port: Int32)

 

Shared Sub RegisterProtocol(name As String, port As Int32)

Parameters:

  • name:
  • port:

Instance Methods


constructor  protected Island

 

constructor

 

KnownProtocols()

 

init()

 

Sub New()