|
using System;
using System.Collections.Generic;
using System.Text;
namespace LumiSoft.Net.STUN.Message
{
/// <summary>
/// This class implements STUN ERROR-CODE. Defined in RFC 3489 11.2.9.
/// </summary>
public class STUN_t_ErrorCode
{
private int m_Code = 0;
private string m_ReasonText = "";
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="code">Error code.</param>
/// <param name="reasonText">Reason text.</param>
public STUN_t_ErrorCode(int code,string reasonText)
{
m_Code = code;
m_ReasonText = reasonText;
}
#region Properties Implementation
/// <summary>
/// Gets or sets error code.
/// </summary>
public int Code
{
get{ return m_Code; }
set{ m_Code = value; }
}
/// <summary>
/// Gets reason text.
/// </summary>
public string ReasonText
{
get{ return m_ReasonText; }
set{ m_ReasonText = value; }
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.