Documentation

Port
in package

FinalYes

Find the correct port depending on the Request type.

Tags
since
2.0.0

Table of Contents

Constants

ACAP  = 674
Port to use with Acap requests.
DICT  = 2628
Port to use with Dictionary requests.
HTTP  = 80
Port to use with HTTP requests.
HTTPS  = 443
Port to use with HTTP over SSL requests.

Methods

get()  : int
Retrieve the port number to use.

Constants

ACAP

Port to use with Acap requests.

public int ACAP = 674

DICT

Port to use with Dictionary requests.

public int DICT = 2628

HTTP

Port to use with HTTP requests.

public int HTTP = 80

HTTPS

Port to use with HTTP over SSL requests.

public int HTTPS = 443

Methods

get()

Retrieve the port number to use.

public static get(string $type) : int
Parameters
$type : string

Request type. The following requests types are supported: 'acap', 'dict', 'http' and 'https'.

Tags
throws
InvalidArgument

When a non-string input has been passed.

throws
Exception

When a non-supported port is requested ('portnotsupported').

Return values
int

        
On this page

Search results