嵌入式Linux GPL非C / C ++ XMPP客户端库 [英] Non GPL C/C++ XMPP client library for embedded Linux

查看:233
本文介绍了嵌入式Linux GPL非C / C ++ XMPP客户端库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道,在ARM设备的嵌入式Linux工作的好非GPL的C / C ++ XMPP客户端库?

我已经签出txmpp但最后更新好像是2年前。
qxmpp似乎需要Qt的,这我不知道在嵌入式Linux的支持。此外,据我所知的Qt是图形用户界面,所以我不知道为什么一个图书馆需要它。
我也查了gloox,但它是GPL,似乎是一岁多了。

感谢。


解决方案

  

非GPL C /嵌入式Linux C ++ XMPP客户端库


libstrophe - 在MIT / GPLv3的双重许可。不过,我不知道这是否会编译ARM的,尽管它应该是相当便携。


  

所以我不知道为什么一个图书馆需要它。


由于Qt提供XML分析器和信号/槽框架。 XMPP需要XML解析器和信号/槽框架,使您的生活更轻松。如果试图实现整个XMPP与OOP方式的所有扩展,你需要类似于Qt的东西。如果你只需要发送一个或两个命令,那么裸露的骨头解决方案都行。

libstrophe是光秃秃的骨头。你不会得到几十个包装重新presenting不同的XMPP概念(和扩展的军团),但是你能够发送你需要/想命令。你必须阅读XMPP规范的,当然。

建议:当涉及到C ++,有没有的许多好XMPP库。
我认为它发生的原因如下(个人意见):


  1. 多协议扩展

  2. 这是很容易,同时使XMPP库来分心。 XMPP包含将极为诱惑,使一切一类,并没有在这种情况下很好地工作,并且需要类似的Qt 4,使其正常工作相当数量的可能的错误,并OOP头脑programmist。

  3. XMPP需要XML解析器。

因此​​,它可能是有意义的尝试蟒蛇 - 如果你的嵌入式平台可以处理它。对于Python,有 xmpppy 。虽然我不喜欢强烈的蟒蛇,我认为它会使用xmpppy比C ++使用libstrophe更容易与XMPP工作在蟒蛇。这是因为XMPP需要大量的键值对列表和Python重新presents这种结构更自然的方式,使用字典。

Does anyone know of a good non GPL C/C++ XMPP client library that works for embedded Linux in ARM machines?

I've checked out txmpp but the last update seems to be 2 years ago. qxmpp seems to require Qt, which I'm not sure is supported in embedded Linux. Also, AFAIK Qt is for GUI, so I'm not sure why a library requires it. I also checked out gloox, but it's GPL and seems to be over a year old too.

Thanks.

解决方案

Non GPL C/C++ XMPP client library for embedded Linux

libstrophe - dual-licensed under Mit/GPLv3. However, I'm not sure if it will compile on ARM, although it should be fairly portable.

so I'm not sure why a library requires it.

Because Qt provides XML parser and signal/slot framework. XMPP requires XML parser, and signal/slot framework makes your life easier. If you try implementing entire XMPP with all extensions in OOP fashion, you'll need something similar to Qt. If you simply need to send a command or two, then bare bones solution will do.

libstrophe is bare bones. You won't get dozens of wrappers representing different xmpp concepts (and legion of extensions), but you'll be able to send commands you need/want. You'll have to read XMPP specifications, of course.

Advice: when it comes to C++, there aren't many good xmpp libraries available. I think it happens for following reasons (personal opinion):

  1. Too many protocol extensions
  2. It is easy to get distracted while making xmpp libraries. Xmpp contains fairly large number of possible errors, and OOP-minded programmist will be extremely tempted to make a class for everything, which doesn't work well in this scenario and requires something like Qt 4 to make it work properly.
  3. XMPP requires XML parser.

As a result, it might make sense to try python - IF your embedded platform can handle it. For python, there's xmpppy. Although I strongly dislike python, I think it'll be easier to work with XMPP in python using xmpppy than in C++ using libstrophe. This is because xmpp requires plenty of key-value pair lists, and python represents such constructs in more "natural" way, using dictionaries.

这篇关于嵌入式Linux GPL非C / C ++ XMPP客户端库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆