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


Class Methods


GetProtocolDefaultPort

Returns the default port number for the specified protocol.

 

class method GetProtocolDefaultPort(protocol: String): Int32

 

static Int32 GetProtocolDefaultPort(String protocol)

 

Shared Function GetProtocolDefaultPort(protocol As String) As Int32

Parameters:

  • protocol:

RegisterProtocol

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)

 

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

Parameters:

  • name:
  • port: