getPortNumberWithError:(NSError **) method

Fetches the server port number which has been opened up for client to connect to it.

Syntax

public static virtual NSInteger getPortNumberWithError: (NSError ** error)

Parameters

Returns

Returns the server port number as an integer Usage NSError* error = nil; NSInteger portNum = [ODPAppSettings getPortNumberWithError:&error]; if (!error) { // Further processing }