C# Class SipSharp.Headers.ViaEntry

The Via header field indicates the path taken by the request so far and indicates the path that should be followed in routing responses.

The branch ID parameter in the Via header field values serves as a transaction identifier, and is used by proxies to detect loops.

A Via header field value contains the transport protocol used to send the message, the client's host name or network address, and possibly the port number at which it wishes to receive responses. A Via header field value can also contain parameters such as "maddr", "ttl", "received", and "branch", whose meaning and use are described in other sections. For implementations compliant to this specification, the value of the branch parameter MUST start with the magic cookie "z9hG4bK", as discussed in Section 8.1.1.7.

The compact form of the via header is "v".

Inheritance: IHeader, ICloneable
Mostra file Open project: jgauffin/SipSharp Class Usage Examples

Private Properties

Property Type Description
ViaEntry System

Public Methods

Method Description
Clone ( ) : object

Creates a new object that is a copy of the current instance.

Equals ( IHeader other ) : bool

Indicates whether the current object is equal to another object of the same type.

ToString ( ) : string
ViaEntry ( ) : System

Initializes a new instance of the ViaEntry class.

ViaEntry ( string domain, string branch ) : System

Initializes a new instance of the ViaEntry class.

Private Methods

Method Description
ViaEntry ( ViaEntry entry ) : System

Method Details

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

Equals() public method

Indicates whether the current object is equal to another object of the same type.
public Equals ( IHeader other ) : bool
other IHeader An object to compare with this object. ///
return bool

ToString() public method

public ToString ( ) : string
return string

ViaEntry() public method

Initializes a new instance of the ViaEntry class.
public ViaEntry ( ) : System
return System

ViaEntry() public method

Initializes a new instance of the ViaEntry class.
public ViaEntry ( string domain, string branch ) : System
domain string MUST include sip: or any other protocol
branch string
return System