C# Class SIPSorcery.SIP.SIPEndPoint

This class must remain immutable otherwise the SIP stack can develop problems. SIP end points can get passed amongst different servers for logging and forwarding SIP messages and a modification of the end point by one server can result in a problem for a different server. Instead a new SIP end point should be created wherever a modification is required.
Mostra file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
AreEqual ( SIPEndPoint endPoint1, SIPEndPoint endPoint2 ) : bool
CopyOf ( ) : SIPEndPoint
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetIPEndPoint ( ) : IPEndPoint
ParseSIPEndPoint ( string sipEndPointStr ) : SIPEndPoint
SIPEndPoint ( IPEndPoint endPoint ) : System
SIPEndPoint ( SIPProtocolsEnum protocol, IPAddress address, int port ) : System
SIPEndPoint ( SIPProtocolsEnum protocol, IPEndPoint endPoint ) : System
SIPEndPoint ( SIPURI sipURI ) : System
ToString ( ) : string
TryParse ( string sipEndPointStr ) : SIPEndPoint
operator ( ) : bool

Private Methods

Method Description
ParseSerialisedSIPEndPoint ( string serialisedSIPEndPoint ) : SIPEndPoint

Reverses ToString().

SIPEndPoint ( ) : System

Method Details

AreEqual() public static method

public static AreEqual ( SIPEndPoint endPoint1, SIPEndPoint endPoint2 ) : bool
endPoint1 SIPEndPoint
endPoint2 SIPEndPoint
return bool

CopyOf() public method

public CopyOf ( ) : SIPEndPoint
return SIPEndPoint

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetIPEndPoint() public method

public GetIPEndPoint ( ) : IPEndPoint
return System.Net.IPEndPoint

ParseSIPEndPoint() public static method

public static ParseSIPEndPoint ( string sipEndPointStr ) : SIPEndPoint
sipEndPointStr string
return SIPEndPoint

SIPEndPoint() public method

public SIPEndPoint ( IPEndPoint endPoint ) : System
endPoint System.Net.IPEndPoint
return System

SIPEndPoint() public method

public SIPEndPoint ( SIPProtocolsEnum protocol, IPAddress address, int port ) : System
protocol SIPProtocolsEnum
address System.Net.IPAddress
port int
return System

SIPEndPoint() public method

public SIPEndPoint ( SIPProtocolsEnum protocol, IPEndPoint endPoint ) : System
protocol SIPProtocolsEnum
endPoint System.Net.IPEndPoint
return System

SIPEndPoint() public method

public SIPEndPoint ( SIPURI sipURI ) : System
sipURI SIPURI
return System

ToString() public method

public ToString ( ) : string
return string

TryParse() public static method

public static TryParse ( string sipEndPointStr ) : SIPEndPoint
sipEndPointStr string
return SIPEndPoint

operator() public static method

public static operator ( ) : bool
return bool