Click here to Skip to main content
15,881,678 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 322.4K   14.9K   85  
STUN client C# implementation with sample application
using System;
using System.Net;

namespace LumiSoft.Net
{
	/// <summary>
	/// Provides data for the SessionLog event.
	/// </summary>
	public class Log_EventArgs
	{
		private SocketLogger m_pLoggger     = null;
		private bool         m_FirstLogPart = true;
        private bool         m_LastLogPart  = false;

		/// <summary>
		/// Default constructor.
		/// </summary>
		/// <param name="logger">Socket logger.</param>
        /// <param name="firstLogPart">Specifies if first log part of multipart log.</param>
		/// <param name="lastLogPart">Specifies if last log part (logging ended).</param>
		public Log_EventArgs(SocketLogger logger,bool firstLogPart,bool lastLogPart)
		{	
			m_pLoggger     = logger;
            m_FirstLogPart = firstLogPart;
            m_LastLogPart  = lastLogPart;
		}


		#region Properties Implementation

		/// <summary>
		/// Gets log text.
		/// </summary>
		public string LogText
		{
			get{ return SocketLogger.LogEntriesToString(m_pLoggger,m_FirstLogPart,m_LastLogPart); }
		}

		/// <summary>
		/// Gets logger.
		/// </summary>
		public SocketLogger Logger
		{
			get{ return m_pLoggger; }
		}

		#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