IRTCClientPortManagement::StopListenAddressAndPort

The StopListenAddressAndPort method specifies an IP address and port for the RTC Client API to stop listening for incoming requests on.

HRESULT StopListenAddressAndPort(BSTRbstrInternalLocalAddress,
longlInternalLocalPort);

Parameters

  • bstrInternalLocalAddress
    [in] BSTR containing the internal local IP address for the RTC Client API to stop listening on.
  • lInternalLocalPort
    [in] The internal local port for the RTC Client API to stop listening on.

Return Values

RTC methods may return an RTC_E_ constant.

Value Meaning
S_OK The listen socket has been successfully stopped.
E_FAIL The client is unable to stop the listen socket for the address and port specified.
RTC_E_CLIENT_NOT_INITIALIZED The client object has not been initialized.

Remarks

For more information on setting the listen address and port, see the Receive an Incoming Session When the Client is Behind a NAT code example.

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_IRTCClientPortManagement is defined as d5df3f03-4bde-4417-aefe-71177bdaea66.

See Also

IRTCClientPortManagement, IRTCPortManager, IRTCSessionPortManagement, IRTCClientPortManagement::StartListenAddressAndPort, Receive an Incoming Session When the Client is Behind a NAT