ConnectionFlags.cs

src/Connections/ConnectionFlags.cs · 1.9 KB

From the archive Arthea-src-1.0.zip

Download the archive   « Back to the archive contents

#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]
    }
}

Site Stats

Snippets: 1791
Codebases: 571