资源简介
1客户端异步向服务器端发送连接请求
<stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
2服务器端收到请求,初始化回应流,并随机生成一相SessionID
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="localhost" id="30e3b8c0" >
3等待服务器返回消息后客户端发送用户名(由于在客户端采用了异步调用
方式,所以UI界面感觉不到等待)
<iq xmlns="jabber:client" id="agsXMPP_1" type="get" to="localhost">
<query xmlns="jabber:iq:auth"><username>test</username></query></iq>
4服务器端收到用户名等待用户提供密码
<iq xmlns="jabber:client" from="localhost" type="result" id="agsXMPP_1">
<query xmlns="jabber:iq:auth"><username>test</username><password />
<digest /></query></iq>
5客户端提供加密后的密码
<iq xmlns="jabber:client" id="agsXMPP_2" to="localhost" type="set">
<query xmlns="jabber:iq:auth"><username>test</username>
<digest>e66557d2b67256bf7e9b317a51b6101674a56b5e</digest>
<resource>MiniClient</resource></query></iq>
6服务器端从数据库验证用户名和密码,并返回结果
iq xmlns="jabber:client" from="localhost" type="result" id="agsXMPP_2" />
7如果返回错误,客户端提示并终断连接,否则客户端发送响应数据
8 服务器端返回数据
9 客户端发送状态,
10服务器收到状态,发送IQ节并通知其它用户.
代码片段和文件信息
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright (c) 2003-2008 by AG-Software *
* All Rights Reserved. *
* Contact information for AG-Software is available at http://www.ag-software.de *
* *
* Licence: *
* The agsXMPP SDK is released under a dual licence *
* agsXMPP can be used under either of two licences *
* *
* A commercial licence which is probably the most appropriate for commercial *
* corporate use and closed source projects. *
* *
* The GNU Public License (GPL) is probably most appropriate for inclusion in *
* other open source projects. *
*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-07 05:01 agsXMPP-WinFormIM-master\
文件 38 2017-02-07 05:01 agsXMPP-WinFormIM-master\.gitignore
文件 1063 2017-02-07 05:01 agsXMPP-WinFormIM-master\LICENSE
目录 0 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\
文件 1078 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\App.ico
文件 2486 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\AssemblyInfo.cs
文件 198 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\ChatServers.xm
文件 21061 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\JEP65Socket.cs
文件 10905 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\MiniClient.csproj
文件 1933 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\MiniClient.sln
目录 0 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Properties\
文件 7155 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Properties\Resources.Designer.cs
文件 8743 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Properties\Resources.resx
目录 0 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\
文件 613 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\add.png
文件 413 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\comment.png
文件 557 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\comments.png
文件 748 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\connect.png
文件 796 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\disconnect.png
文件 693 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\door_in.png
文件 753 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\group.png
文件 853 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\package.png
文件 791 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\refresh.png
文件 545 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\search.png
文件 746 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\user_add.png
文件 743 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\user_comment.png
文件 767 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\user_delete.png
文件 533 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\vcard.png
文件 692 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Resources\zoom.png
文件 218 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Settings.xm
目录 0 2017-02-07 05:01 agsXMPP-WinFormIM-master\MiniClient\Settings\
............此处省略546个文件信息
相关资源
- C#联通网络宽带测试 拨号
- C#百度指数抓取方法(2012年版本已失
- C# 隐藏某个磁盘分区
- C# 读取并编辑window系统的右键菜单
- C#自定义屏保(不断滚动的文字)
- C#winform打印指定区域 -控件拖动 -设置
- C#使用Hook进行改键
- 提供C#调用系统API函数弹出或收起光驱
- 通过C#自带的头文件(类)获取Windo
- C#获取电脑CPU以及内存使用率
- 利用uu云打码平台的lib实现的c#打码平
- tf-idf一种计算方法
- C# pop3 邮件接收程序
- C# 邮件群发示例 源码下载18952
- 动态抓取IPC#实现
- XXTEA算法的C#实现和JS实现,可以互相
- C# 飞行棋 游戏源码(面向对象入门)
- 基于WinPcap的C# ARP欺骗软件().rar
- C#网络应用编程 矩阵并行计算练习
- 《C#版Ftp软件源码》
-
C# 播放铃声(AxWindowsMediaPla
yer)最新 - C# 把图片显示成椭圆形状
- C# 水平交错效果显示图像
- winform 浮雕效果的图像
- c# 底片效果显示图像就像旧式相机的
- 积木效果显示图像
- C# 隐形窗体 (没有边框,没有标题栏
- browerPhotoC#网页截图(不打开网页)
- C# 模拟时钟(自绘Graphics)
- C#之WPF重绘动态正弦余弦曲线
评论
共有 条评论