IRTCClientPortManagement

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This interface provides methods that allow the client application to supply additional IP addresses and ports on which the RTC Client API can listen. It is primarily used by applications implementing the NAT Traversal (IRTCClient::NetworkAddresses) method and NAT Mapping (IRTCSessionPortManagement and IRTCPortManager) interfaces.

The application communicates the port for incoming traffic out-of-band to the remote client. After the session request arrives and creates the incoming session, the application sets the port manager on the session object.

The IRTCSessionPortManagement interface provides the IRTCPortManager interface to the RTC Client API. The RTC Client API uses this interface to obtain the mappings for internal and external IP addresses and ports for the session.

For outgoing sessions, the application must set the IRTCPortManager interface on the session object before the session request is sent. The IRTCPortManager interface is set before accepting an incoming session.

Methods

The following table shows the methods for this interface in vtable order. This is the order in which the compiler calls the methods.

Like all COM interfaces, this interface inherits the methods for the IUnknown interface.

Method Description

IRTCClientPortManagement::StartListenAddressAndPort

Specifies an IP address and port on which the RTC Client API can listen for incoming requests.

IRTCClientPortManagement::StopListenAddressAndPort

Specifies an IP address and port on which the RTC Client API should stop listening for incoming requests.

IRTCClientPortManagement::GetPortRange

Retrieves the minimum and maximum values of the ports configured for the specified port type.

Obtaining a Pointer

The IRTCClientPortmanagement interface can be obtained by calling IUnknown::QueryInterface on the IRTCClient2 interface.

Requirements

Header rtccore.h, rtccore.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

RTC Client API Interfaces