Class ConnectionData
Class for processing the Connection Data "c=" type of the SDP contents.
Inherited Members
Namespace: SipLib.Sdp
Assembly: SipLib.dll
Syntax
public class ConnectionData
Constructors
| Edit this page View SourceConnectionData()
Constructs a new, empty ConnectionData object. Use this construct when creating new connection data for SDP contents of a new SIP message.
Declaration
public ConnectionData()
ConnectionData(IPAddress)
Constructor.
Declaration
public ConnectionData(IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
IPAddress | address |
Fields
| Edit this page View SourceAddress
Contains the IP address portion of a c= SDP line. May be an IPv4 or an IPv6 address
Declaration
public IPAddress? Address
Field Value
Type | Description |
---|---|
IPAddress |
AddressCount
Contains the number of IP addresses if the Address is a multicast address. A value of 0 indicates that the address Count field is not present.
Declaration
public int AddressCount
Field Value
Type | Description |
---|---|
int |
AddressType
Contains the Address Type information. Should be "IP4" or "IP6".
Declaration
public string AddressType
Field Value
Type | Description |
---|---|
string |
NetworkType
Contains the network type. "IN" = Internet.
Declaration
public string NetworkType
Field Value
Type | Description |
---|---|
string |
TTL
Contains the Time To Live field of the IP address. A value of -1 indicates that the TTL field is not present.
Declaration
public int TTL
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceCreateCopy()
Creates a deep copy of this object.
Declaration
public ConnectionData CreateCopy()
Returns
Type | Description |
---|---|
ConnectionData | A new object with a copy of the member variables. |
ParseConnectionData(string)
Parses a string containing the parameter fields of the SDP c= line.
Declaration
public static ConnectionData ParseConnectionData(string strConnectionData)
Parameters
Type | Name | Description |
---|---|---|
string | strConnectionData | Contains the parameter fields of the c= line. The "c=" field must not be present. |
Returns
Type | Description |
---|---|
ConnectionData | Returns a new ConnectionData object |
ToString()
Converts the ConnectionData object to a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string format is: "c=NetworkType AddressType ConnectionAddress\r\n" |