开发者

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

开发者 https://www.devze.com 2022-12-10 08:55 出处:网络
I\'m looking for an Instant Messaging library that at minimum supports YM, MSN protocol - preferably free but if it\'s wor开发者_开发知识库th to pay, why not.msnp-sharp is the open source protocol wri

I'm looking for an Instant Messaging library that at minimum supports YM, MSN protocol - preferably free but if it's wor开发者_开发知识库th to pay, why not.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消