Click here to Skip to main content
15,891,905 members
Articles / Programming Languages / C#

SIP Stack with SIP Proxy - (VOIP)

Rate me:
Please Sign up or sign in to vote.
4.86/5 (45 votes)
11 Jun 2007CPOL2 min read 1.6M   28.1K   162  
C# implementation of SIP
using System;

namespace LumiSoft.Net
{
	/// <summary>
	/// Socket log entry.
	/// </summary>
	public class SocketLogEntry
	{
		private string             m_Text = "";
		private long               m_Size = 0;
		private SocketLogEntryType m_Type = SocketLogEntryType.FreeText;

		/// <summary>
		/// Default constructor.
		/// </summary>
		/// <param name="text">Log text.</param>
		/// <param name="size">Data size.</param>
		/// <param name="type">Log entry type</param>
		public SocketLogEntry(string text,long size,SocketLogEntryType type)
		{
			m_Text = text;
			m_Type = type;
			m_Size = size;
		}


		#region Properties Implementation

		/// <summary>
		/// Gets log text.
		/// </summary>
		public string Text
		{
			get{ return m_Text; }
		}

		/// <summary>
		/// Gets size of data readed or sent.
		/// </summary>
		public long Size
		{
			get{ return m_Size; }
		}

		/// <summary>
		/// Gets log entry type.
		/// </summary>
		public SocketLogEntryType Type
		{
			get{ return m_Type; }
		}

		#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