[LCS]深入了解SipSnoop—事件篇
摘要:SipSnoop用于监听Response和Request的SIP消息,是LCS2005自带的一款非常酷的应用程序,虽不及Ethereal强大,但也足以满足一般监听,本文将对其核心方法进行分析。[@more@]l 知识点: [MSPL]内置变量sipRequest:sipRequest变量包含了当前从Live Communications Server到应用程序的SIP请求消息。 [MSPL]内置变量sipResponse:sipResponse变量包含了当前从Live Communications Server到应用程序的SIP响应消息。 [MSPL] Dispatch方法:Dispatch方法为应用程序的内部的事件处理者(event handler)分配一个事件。如果成功转发到指定的方
Live Communications Server Application API (2)
LCS API 一、常用知识点:1、[MSPL]Dispatch函数: Dispatch函数向应用程序内部的提供事件句柄分配一个事件。[@more@] bool Dispatch( string methodName, ); 参数:methodName,... 这个methodName在托管代码里,他将收到这个分配的消息,并处理它。返回值:如果成功的转发指定的方法将返回true.否则返回false.备注:如果你的应用程序用script-only标记,那么你用Dispatch的话编译将失败。示例:下面的代码显示了Dispatch函数在application manifest内部的具体用法。和它自身的事件句柄
Live Communications Server Application API (1)
LCS API套件中包括: Microsoft SIP Processing Language(MSPL)、Microsoft.Rtc.Sip命名空间、application manifests 和为LCS构建SIP应用程序的资料。[@more@]Note The Live Communications Server Application API currently does not support SIP dialogs and UAC server behaviors. Future versions of the API will add support for these features. 1. Application manifests The application manifest is an XML document that describes a Live Communications Server application to the server on which it is running. This doc
SharePoint WebPart开发心得
单位的门户网站构建于SharePoint,即时通讯平台是Live Communication Server(LCS)。由于LCS并不自带查询聊天记录的功能,所以为SharePoint开发了一个查询LCS聊天记录的WebPart。在此记录一下创建的过程。[@more@]一、创建前的准备1、服务器端安装Sharepoint Portal Server2、开发客户端安装Visual Studio .NET3、安装WebPart模版Sharepoint Web Part Library Template for Visual Studio .NET下载地址:http://www.microsoft.com/downloads/details.aspx?FamilyId=14D5D92F-C3A6-407C-AAD7-B8C41A4991BE&displaylang=en。在安装这个模
C#.NET常用的小函数和方法集
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now;[@more@]1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Second; 1.8 取当前毫秒 int 毫秒=currentTime.Millisecond; (变量可用中文) 2、Int32.Parse(变量) Int32.Parse("常量") 字符型转换 转为32位
ASP.NET(C#)中的DataGrid的嵌套
De_MainList为DataGrid1的IDDe_ArticleList为DataGrid2的ID在DataGrid1中必须添加DataKeyField="ID"参数ID 为主表的和次表的关联字段。首先在InitializeComponet()中添加下面代码[@more@] private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); this.De_MainList.ItemDataBound += new DataGridItemEventHandler(this.De_MainList_ItemDataBound); }Page_Load事件里添加代码 private void Page_Load(object sender, System.EventArgs e) { if(!Page.IsPostBack) { De_M
DotNET(C#) Socket基本编程
Socket基本编程 服务端: using System.Net; using System.Net.Sockets; using System.Text; using System.Threading;[@more@]Thread mythread ; Socket socket; // 清理所有正在使用的资源。 protected override void Dispose( bool disposing ) { try { socket.Close();//释放资源 mythread.Abort ( ) ;//中止线程 } catch{ } if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } public static IPAddress GetServerIP() { IPHostEntry ieh=Dns.GetHostByNa
C#实现对Word文件读写
手头上的一个项目报表相对比较简单,所以报表打印采用VBA引擎,通过定制Word模版,然后根据模版需要填充数据,然后OK,打印即可。[@more@]实现方法:首先需要引用VBA组建,我用的是Office2003 Professional,Dll版本号为Microsoft Word11.0 另外当然还需要引用Interop.Word.Dll. 代码如下: ///#region 打开Word文档,并且返回对象wDoc,wDoc /// /// 打开Word文档,并且返回对象wDoc,wDoc /// /// 完整Word文件路径+名称 /// 返回的Word.Document wDoc对象 /// 返回的Word.Application对象 public static void CreateWordDocument(string