#region Arthea License /*********************************************************************** * Arthea MUD by R. Jennings (2007) http://arthea.googlecode.com/ * * By using this code you comply with the Artistic and GPLv2 Licenses. * ***********************************************************************/ #endregion namespace Arthea.Connections { /// <summary> /// Implementation of connection flags. /// </summary> public class ConnectionFlags : Flag { #region [rgn] Fields (4) /// <summary> /// Is using compression. /// </summary> public const ulong MCCP = (1UL << 3); /// <summary> /// Connection has negotiated NAWS /// </summary> public const ulong NAWS = (1UL << 0); /// <summary> /// Has negotiated New-Environment /// </summary> public const ulong NE = (1UL << 2); /// <summary> /// Has negotiated Terminal Type /// </summary> public const ulong TType = (1UL << 1); #endregion [rgn] #region [rgn] Constructors (3) /// <summary> /// Initializes a new instance of the <see cref="ConnectionFlags"/> class. /// </summary> /// <param name="flag">The flag.</param> public ConnectionFlags(Flag flag) : base(flag) { } /// <summary> /// Initializes a new instance of the <see cref="ConnectionFlags"/> class. /// </summary> /// <param name="bits">The bits.</param> public ConnectionFlags(ulong bits) : base(bits) { } /// <summary> /// Initializes a new instance of the <see cref="ConnectionFlags"/> class. /// </summary> public ConnectionFlags() { } #endregion [rgn] } }