Click here to Skip to main content
15,887,683 members
Articles / Programming Languages / C#

STUN Client

Rate me:
Please Sign up or sign in to vote.
4.83/5 (36 votes)
20 Apr 2007CPOL 324.8K   14.9K   85  
STUN client C# implementation with sample application
using System;
using System.Collections;

namespace LumiSoft.Net.IMAP.Server
{
	/// <summary>
	/// Provides data for GetFolderACL event.
	/// </summary>
	public class IMAP_GETACL_eArgs
	{
		private IMAP_Session m_pSession    = null;
		private string       m_pFolderName = "";
		private Hashtable    m_ACLs        = null;
		private string       m_ErrorText   = "";

		/// <summary>
		/// Default constructor.
		/// </summary>
		/// <param name="session">Owner IMAP session.</param>
		/// <param name="folderName">Folder name which ACL to get.</param>
		public IMAP_GETACL_eArgs(IMAP_Session session,string folderName)
		{
			m_pSession = session;
			m_pFolderName = folderName;

			m_ACLs = new Hashtable();
		}


		#region Properties Implementation

		/// <summary>
		/// Gets current IMAP session.
		/// </summary>
		public IMAP_Session Session
		{
			get{ return m_pSession; }
		}

		/// <summary>
		/// Gets folder name which ACL to get.
		/// </summary>
		public string Folder
		{
			get{ return m_pFolderName; }
		}

		/// <summary>
		/// Gets ACL collection. Key = userName, Value = IMAP_ACL_Flags.
		/// </summary>
		public Hashtable ACL
		{
			get{ return m_ACLs; }
		}

		/// <summary>
		/// Gets or sets error text returned to connected client.
		/// </summary>
		public string ErrorText
		{
			get{ return m_ErrorText; }

			set{ m_ErrorText = 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions