Click here to Skip to main content
15,885,869 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 323.4K   14.9K   85  
STUN client C# implementation with sample application
using System;

namespace LumiSoft.Net.Mime
{
	/// <summary>
	/// Rfc 2046,2387 Media Types.
	/// </summary>
	public enum MediaType_enum
	{		
		/// <summary>
		/// Text data.
		/// </summary>
		Text = 1,

		/// <summary>
		/// Simple text data. Defined in Rfc 1521.
		/// </summary>
		Text_plain = Text | (1 << 1),

		/// <summary>
		/// Html data. Defined in Rfc 2854.
		/// </summary>
		Text_html = Text | (1 << 2),

		/// <summary>
		/// Xml data. Defined in Rfc 3023 3.1.
		/// </summary>
		Text_xml = Text | (1 << 3),

		/// <summary>
		/// Rich text (RTF) data.
		/// </summary>
		Text_rtf = Text | (1 << 4),
		
		/// <summary>
		/// Image data.
		/// </summary>
		Image = 1 << 5,

		/// <summary>
		/// Gif image. Defined in Rfc 1521.
		/// </summary>
		Image_gif = Image | (1 << 6),

		/// <summary>
		/// Tiff image.
		/// </summary>
		Image_tiff = Image | (1 << 7),

		/// <summary>
		/// Jpeg image. Defined in Rfc 1521.
		/// </summary>
		Image_jpeg = Image | (1 << 8),

		/// <summary>
		/// Audio data.
		/// </summary>
		Audio = 1 << 8,

		/// <summary>
		/// Video data.
		/// </summary>
		Video = 1 << 10,

		/// <summary>
		/// Some other kind of data, typically either uninterpreted binary data or information to be processed by an application.
		/// </summary>
		Application = 1 << 11,

		/// <summary>
		/// The "octet-stream" subtype is used to indicate that a body contains	arbitrary binary data. Defined in Rfc 4046 4.5.1.
		/// </summary>
		Application_octet_stream = Application | (1 << 12),

		/// <summary>
		/// Data consisting of multiple entities of	independent data types.
		/// </summary>
		Multipart = 1 << 13,

		/// <summary>
		/// Data consisting of multiple entities of	independent data types.
		/// </summary>
		Multipart_mixed = Multipart | (1 << 14),

		/// <summary>
		/// Data consisting of multiple entities of	independent data types.
		/// </summary>
		Multipart_alternative =  Multipart | (1 << 15),

		/// <summary>
		/// Data consisting of multiple entities of	independent data types.
		/// </summary>
		Multipart_parallel =  Multipart | (1 << 16),

		/// <summary>
		/// Data consisting of multiple entities of	independent data types. (Rfc 2387)
		/// </summary>
		Multipart_related =  Multipart | (1 << 17),

		/// <summary>
		/// Multipart signed. Defined in Rfc 1847.
		/// </summary>
		Multipart_signed =  Multipart | (1 << 18),

		/// <summary>
		/// Message -- an encapsulated message.
		/// </summary>
		Message =  1 << 19,

		/// <summary>
		/// Rfc 822 encapsulated message.
		/// </summary>
		Message_rfc822 = Message | (1 << 20),

		/// <summary>
		/// Media type isn't specified.
		/// </summary>
		NotSpecified = 1 << 21,

		/// <summary>
		/// Media type is unknown.
		/// </summary>
		Unknown = 1 << 22,
	
	}
}

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