简体   繁体   中英

Looking for library for Instant Messaging, like libpurple, but written in C#

我正在寻找一个至少支持YM,MSN协议的即时消息库 - 最好是免费的,但如果它值得付费,为什么不呢。

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.

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.

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 :

  • Create a .NET wrapper for libpurple
  • Use the existing separate protocol implementations, extract an abstraction level that fits all of them, and put them all together.

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...

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. "

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM