正在寻找即时消息传递库,例如 libpurple,但用 C# 编写
我正在寻找一个至少支持 YM、MSN 协议的即时消息库 - 最好是免费的,但如果值得付费,为什么不呢。
I'm looking for an Instant Messaging library that at minimum supports YM, MSN protocol - preferably free but if it's worth to pay, why not.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
msnp-sharp 是用 C# 编写的 MSN 开源协议。您可以从 http://code.google.com/p/msnp-sharp/ 获取它。它非常活跃。
但我对雅虎 IM 协议没有任何经验。此链接显示在 Google 搜索 YM Trainer 中。如果您不知道的话,请尝试一下 http://www.ycoderscookbook.com/。
msnp-sharp is the open source protocol written in c# for MSN. You can get it from http://code.google.com/p/msnp-sharp/ . Its very active.
But i don have any experience with yahoo IM protocol. This link showed up in google search YM Trainer. And Just give a try http://www.ycoderscookbook.com/, incase you are not aware of.
首先,您是否看过 libpurple-sharp 是 libpurple 的 .NET 绑定。即使该项目尚未发布包,那里已经有很多代码,也许对于您的应用程序来说已经足够了。
我认为实现对 libpurple 一样多协议的支持的唯一方法是使用 libpurple 或将其移植到 .NET。
First of all, have you had a look at libpurple-sharp which are .NET bindings for libpurple. Even if the project hasn't released a package, there is a lot of code there already and perhaps it is enough for your application.
I think that the only way that you will achieve support for as many protocols as libpurple is to either use libpurple or port it to .NET.
我从未听说过 .NET 的多协议 IM 库...但是,几乎所有协议都有单独的实现。如果您确实需要它,我建议您创建自己的库;)。
我可以看到执行此操作的两个主要选项:
我认为第一种方法是最好的,因为抽象级别可能已经存在于 libpurple 中。不管你选择哪一个,反正都会有很多工作......
I've never heard of a multi-protocol IM library for .NET... there are separate implementations for almost all protocols, however. If you really need that, I suggest you create your own library ;).
I can see 2 main options for doing that :
I think the first approach is the best, because the abstraction level probably already exists in libpurple. Whichever you choose, it's going to be a lot of work anyway...
根据这篇帖子
Jabber-net: "一组用于发送和接收可扩展消息和状态协议 (XMPP) 的 .Net 控件,也称为 Jabber "。
As per this post
Jabber-net: "A set of .Net controls for sending and receiving Extensible Messaging and Presence Protocol (XMPP), also known as the Jabber. "
根据您想要执行的操作,您可以运行 Pidgin 并使用 DBUS (nDBUS IIRC)“监听”事件。
这将允许您在 .NET 代码中响应来自 Pidgin 的事件(就像当前登录的用户收到一条消息)。
Depending on what you want to do you can run Pidgin and "listen" to events with DBUS (nDBUS IIRC).
This will allow you to respond to events from Pidgin in .NET code (like the currently logged in user receives a message).