|
using System;
using System.Collections.Generic;
using System.Text;
namespace LumiSoft.Net.STUN.Message
{
/// <summary>
/// This class implements STUN CHANGE-REQUEST attribute. Defined in RFC 3489 11.2.4.
/// </summary>
public class STUN_t_ChangeRequest
{
private bool m_ChangeIP = true;
private bool m_ChangePort = true;
/// <summary>
/// Default constructor.
/// </summary>
public STUN_t_ChangeRequest()
{
}
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="changeIP">Specifies if STUN server must send response to different IP than request was received.</param>
/// <param name="changePort">Specifies if STUN server must send response to different port than request was received.</param>
public STUN_t_ChangeRequest(bool changeIP,bool changePort)
{
m_ChangeIP = changeIP;
m_ChangePort = changePort;
}
#region Properties Implementation
/// <summary>
/// Gets or sets if STUN server must send response to different IP than request was received.
/// </summary>
public bool ChangeIP
{
get{ return m_ChangeIP; }
set{ m_ChangeIP = value; }
}
/// <summary>
/// Gets or sets if STUN server must send response to different port than request was received.
/// </summary>
public bool ChangePort
{
get{ return m_ChangePort; }
set{ m_ChangePort = 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.