IRTCClient2::get_AllowedPorts

The get_AllowedPorts method retrieves the way that the Client listens for incoming sessions. This method sets the ports that can be retrieved by IRTCClient2::put_AllowedPorts.

HRESULT get_AllowedPorts(longlTransport,
RTC_LISTEN_MODE*penMode);

Parameters

  • lTransport
    [in] A long that contains the transport type.
  • penMode
    [out] Pointer to an RTC_LISTEN_MODE enumeration that contains the listen mode.

Return Values

RTC methods may return an RTC_E_ constant.

Remarks

If this method is called after the listen mode has been set by calling the IRTCClient::put_ListenForIncomingSessions method, or after calling IRTCClient::get_ListenForIncomingSessions, the RTC Client API will return an RTC_E_NOT_ALLOWED error.

Requirements

Redistributable: Requires Rtcdll.dll on Windows 2000, Windows XP, and Windows Server 2003.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCClient2 is defined as 0C91D71D-1064-42da-BFA5-572BEB8EEA84.

See Also

IRTCClient, IRTCClient2, IRTCClient2::get_AnswerMode, IRTCClient2::put_AllowedPorts, RTC_LISTEN_MODE