Click here to Skip to main content
15,884,629 members
Articles / Programming Languages / C#

Advanced MIME Parser/Creator/Editor

Rate me:
Please Sign up or sign in to vote.
4.91/5 (66 votes)
5 Oct 2005 994.4K   7.7K   116  
An advanced MIME parser/creator/editor application.
using System;

namespace LumiSoft.Net
{
	#region public enum ReadReplyCode

	/// <summary>
	/// Reply reading return codes.
	/// </summary>
	public enum ReadReplyCode
	{
		/// <summary>
		/// Read completed successfully.
		/// </summary>
		Ok             = 0,

		/// <summary>
		/// Read timed out.
		/// </summary>
		TimeOut        = 1,

		/// <summary>
		/// Maximum allowed Length exceeded.
		/// </summary>
		LengthExceeded = 2,

		/// <summary>
		/// Connected client closed connection.
		/// </summary>
		SocketClosed = 3,

		/// <summary>
		/// UnKnown error, eception raised.
		/// </summary>
		UnKnownError   = 4,
	}

	#endregion

	/// <summary>
	/// Summary description for ReadException.
	/// </summary>
	public class ReadException : System.Exception
	{
		private ReadReplyCode m_ReadReplyCode;

		/// <summary>
		/// 
		/// </summary>
		/// <param name="code"></param>
		/// <param name="message"></param>
		public ReadException(ReadReplyCode code,string message) : base(message)
		{	
			m_ReadReplyCode = code;
		}

		#region Properties Implementation

		/// <summary>
		/// Gets read error.
		/// </summary>
		public ReadReplyCode ReadReplyCode
		{
			get{ return m_ReadReplyCode; }
		}

		#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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


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