C# Class SIPLib.SIP.SIPURI

This class is used to represent a SIPURI (“Firstname Lastname” <sip:[email protected]> etc)
Show file Open project: richardspiers/C-Sharp-Sip-Lib Class Usage Examples

Public Methods

Method Description
Compare ( SIPURI other ) : bool

Helper function to compares this SIPURI to another specified SIPURI.

Dup ( ) : SIPURI

Clones this SIPURI and returns a new SIPURI

Hash ( ) : string

Returns a md5 hash based on the lowercased string contents of this SIPURI.

HostPort ( ) : string

Helper function returning a string combining the SIPURI's host and port.

SIPURI ( ) : System

Initializes an empty instance of the T:SIPLib.SIP.SIPURI class.

SIPURI ( string uri ) : System

Initializes a new instance of the T:SIPLib.SIP.SIPURI class.

SIPURI ( string uri, bool useRegex ) : System
ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method Description
GetMd5Hash ( MD5 md5Hash, string input ) : string

Helper function used to get the MD5 hash of the inputed string using the MD5 object passed in.

Init ( ) : void

Initializes the SIPURI object

nonRegExpInit ( string uri ) : void
regExInit ( string uri ) : void

Method Details

Compare() public method

Helper function to compares this SIPURI to another specified SIPURI.
public Compare ( SIPURI other ) : bool
other SIPURI The other.
return bool

Dup() public method

Clones this SIPURI and returns a new SIPURI
public Dup ( ) : SIPURI
return SIPURI

Hash() public method

Returns a md5 hash based on the lowercased string contents of this SIPURI.
public Hash ( ) : string
return string

HostPort() public method

Helper function returning a string combining the SIPURI's host and port.
public HostPort ( ) : string
return string

SIPURI() public method

Initializes an empty instance of the T:SIPLib.SIP.SIPURI class.
public SIPURI ( ) : System
return System

SIPURI() public method

Initializes a new instance of the T:SIPLib.SIP.SIPURI class.
public SIPURI ( string uri ) : System
uri string A string representing a SIP URI.
return System

SIPURI() public method

public SIPURI ( string uri, bool useRegex ) : System
uri string
useRegex bool
return System

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string