Initializes a new instance of the
SipPeerToPeerEndpoint class.
Namespace:
Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New |
C# |
---|
public SipPeerToPeerEndpoint() |
Visual C++ |
---|
public: SipPeerToPeerEndpoint() |
JavaScript |
---|
Microsoft.Rtc.Signaling.SipPeerToPeerEndpoint = function(); |
Remarks
The URI for the endpoint defaults to local host. To enable
listening, use StartListening(ipEndpoint) in the ConnectionManager
property. The use of this constructor creates its own instance of
the SIP stack needed to support this endpoint. Since the creation
of Sip Stack is memory consuming, it is not recommended to create
too many instances (> 10) of endpoint using this
constructor.
Exceptions
Exception | Condition |
---|---|
Microsoft.Rtc.Signaling . . :: . RealTimeException | Thrown when the local host name cannot be retrieved. |