get_default_port


Description:

public abstract uint16 get_default_port (NetworkSecurityMethod method)

Returns the default network port number for this and the security method method, as defined in /etc/services.

For example, the default port for unencrypted IMAP or encrypted IMAP using STARTTLS is 143, but the default port for IMAP over SSL is 993.

Parameters:

this

a NetworkService

method

a NetworkSecurityMethod

Returns:

the default port number for this and method