MatriX 是 e
Xtensible
Messaging and
Presence
Protocol (
XMPP, 也叫 Jabber) 的开发包,采用 C# 编写,可用于 .NET 平台和 Sliverlight 技术。MatriX 提供完全的 .NET、.NET Compact 框架和 Sliverlight 支持。
- 完全兼容 RFC 3920, 3921, 6120, 6121
- 跨平台:
- Microsoft .NET Framework
- Microsoft .NET Compact Framework (Pocket PC, Smartphone, Windows CE)
- Silverlight
- Windows Phone
- Mono
- Multi OS (Windows, Linux, Mac…)
- for client, server and web applications
- 快速和轻量
- 易于使用
2 | var xmppClient = new XmppClient {XmppDomain = "jabber.org" , |
3 |
Username = "user1" , Password = "secret" }; |
4 | xmppClient.OnRosterEnd += delegate {xmppClient.Send( |
5 |
new Message {To = "user2@jabber.org" , Type = MessageType.chat, Body = "Hello World" });}; |
转载于:https://blog.51cto.com/yerik/1076595