次の方法で共有


IRTCPortManager (Windows Embedded CE 6.0)

1/6/2010

This interface represents the RTC Port Manager for network address translation (NAT) mappings. For each media type, the methods of this interface provide an IP address and port pair. The application must supply a pointer to this interface to the RTC Client API using the IRTCSessionPortManagement::SetPortManager method.

Note

Any calls to the IRTCPortManager methods must be processed in a timely fashion. Long delays can cause the session to fail due to a timeout. The port manager is strongly recommended to have port mappings ready before the application starts or accepts a session. If the port mappings are not available when an incoming session event is received (RTCSS_INCOMING), the application is recommended to return a failure code. The IRTCPortManager methods must not directly or indirectly call any RTC Client API.

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

IRTCPortManager::GetMapping

Retrieves internal and external (on the NAT) IP addresses and port mappings when given a remote address and port type for the port.

IRTCPortManager::UpdateRemoteAddress

Informs the application that the remote address has been updated.

IRTCPortManager::ReleaseMapping

Informs the application that NAT mapping is no longer required.

Requirements

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

See Also

Reference

RTC Client API Interfaces