C# Класс 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".

Наследование: IHeader, ICloneable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ViaEntry System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ViaEntry ( ViaEntry entry ) : System

Описание методов

Clone() публичный Метод

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

Equals() публичный Метод

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. ///
Результат bool

ToString() публичный Метод

public ToString ( ) : string
Результат string

ViaEntry() публичный Метод

Initializes a new instance of the ViaEntry class.
public ViaEntry ( ) : System
Результат System

ViaEntry() публичный Метод

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
Результат System