ProgSoft

A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every diff...

MSNP10协议分析 03.状态 [by progsoft]

先给出一个改变用户状态案例
>>>  CHG 9 NLN 805306412 %3Cmsnobj%20Creator%3D%22example%40hotmail.com%22%20Size%3D%2224049%22%20Type%3D%223%22%20Location%3D%22TFRC79.dat%22%20Friendly%3D%22AAA%3D%22%20SHA1D%3D%22S4gUrfdfe5D2%2FhwJc86Et8YIPpE%3D%22%20SHA1C%3D%22oeK9c1b3k3zCqBEz2BpI%2BM4t%2FH4%3D%22%2F%3E/r/n
<<<  CHG 9 NLN 805306412 %3Cmsnobj%20Creator%3D%22example%40hotmail.com%22%20Size%3D%2224049%22%20Type%3D%223%22%20Location%3D%22TFRC79.dat%22%20Friendly%3D%22AAA%3D%22%20SHA1D%3D%22S4gUrfdfe5D2%2FhwJc86Et8YIPpE%3D%22%20SHA1C%3D%22oeK9c1b3k3zCqBEz2BpI%2BM4t%2FH4%3D%22%2F%3E/r/n
<<<  ILN 9 NLN user02@hotmail.com user02_nickname 536870948 %3Cmsnobj%20Creator%3D%22user02%40hotmail.com%22%20Size%3D%2214221%22%20Type%3D%223%22%20Location%3D%22TMP02.png%22%20Friendly%3D%22AAA%3D%22%20SHA1D%3D%22zim5+8oBkSDriutJTCc2%2FD%2F%2FqTg%3D%22%20SHA1C%3D%22ObsnvqL507fuPZWilLmJNV2+FIg%3D%22%2F%3E/r/n
<<<  ILN 9 NLN user04@hotmail.com user04_nickname 0/r/n

歇一会,我们已经成功改变用户状态,并获得好友状态~~~!

下面我们给出一个说明。

在本操作过程中,实现用户的状态改变
客户端发送>>>  CHG 9 NLN 805306412 %3Cmsnobj%20Creator%3D%22example%40hotmail.com%22%20Size%3D%2224049%22%20Type%3D%223%22%20Location%3D%22TFRC79.dat%22%20Friendly%3D%22AAA%3D%22%20SHA1D%3D%22S4gUrfdfe5D2%2FhwJc86Et8YIPpE%3D%22%20SHA1C%3D%22oeK9c1b3k3zCqBEz2BpI%2BM4t%2FH4%3D%22%2F%3E/r/n
服务器回应<<<  CHG 9 NLN 805306412 %3Cmsnobj%20Creator%3D%22example%40hotmail.com%22%20Size%3D%2224049%22%20Type%3D%223%22%20Location%3D%22TFRC79.dat%22%20Friendly%3D%22AAA%3D%22%20SHA1D%3D%22S4gUrfdfe5D2%2FhwJc86Et8YIPpE%3D%22%20SHA1C%3D%22oeK9c1b3k3zCqBEz2BpI%2BM4t%2FH4%3D%22%2F%3E/r/n

语法结构为:
CHG<SP>TrID<SP>状态变量<SP>客户端变量<SP>msnobj<CRLF>
CHG 指出命令为改变用户状态
状态变量
一共有下面7种
NLN - 在线(Online)
BSY - 忙碌(Busy)
BRB - 马上回来(Be Right Back)
AWY - 离开(Away)
PHN - 接听电话(On the Phone)
LUN - 外出就餐(Out to Lunch)
FLN - 显示为脱机(Offline)
HDN - 隐身(Hide)

客户端变量
1-客户端运行在移动操作系统
2-不明意思
4-客户端支持接收ink消息
8-客户端支持发送和接收ink消息
16-客户端支持视频会议
32-不明意思,但必须选择
64-The client has a MSN Mobile device you can page them on. This is equivalent to the MOB value in the principal's BPR list, and nothing to do with Windows Mobile.
128-The client has an MSN Direct device you can direct-page them on. This is equivalent to the WWE value in the principal's BPR list.
268435456-客户端支持协议MSNC1
536870912-客户端支持协议MSNC2

如805306412=536870912+268435456+32+8+4,即支持MSNC1和MSNC2及ink消息的收发

msnobj
用于显示用户的个性图片,另外介绍。

服务器回应<<<  ILN 9 NLN user02@hotmail.com user02_nickname 536870948 %3Cmsnobj%20Creator%3D%22user02%40hotmail.com%22%20Size%3D%2214221%22%20Type%3D%223%22%20Location%3D%22TMP02.png%22%20Friendly%3D%22AAA%3D%22%20SHA1D%3D%22zim5+8oBkSDriutJTCc2%2FD%2F%2FqTg%3D%22%20SHA1C%3D%22ObsnvqL507fuPZWilLmJNV2+FIg%3D%22%2F%3E/r/n
服务器回应<<<  ILN 9 NLN user04@hotmail.com user04_nickname 0/r/n

语法结构为:
ILN<SP>TrID<SP>状态变量<SP>好友passport<SP>好友昵称<SP>好友客户端变量[<SP>msnobj]<CRLF>
ILN 指出命令为当前用户状态

阅读更多
个人分类: MSN
想对作者说点什么? 我来说一句

MSN Messenger协议

2009年01月14日 111KB 下载

没有更多推荐了,返回首页

不良信息举报

MSNP10协议分析 03.状态 [by progsoft]

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭