用于 Windows 和 Linux 的 c++ xml、tcp/ip 库 [英] c++ xml, tcp/ip libraries for Windows and Linux

查看:43
本文介绍了用于 Windows 和 Linux 的 c++ xml、tcp/ip 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个处理 xml 和 tcp/ip 消息的 C# 客户端,我必须将它转换为 C++,但是 - 我必须将它转换为 C++,以便它可以在 Windows 和 Linux 上运行.是否有一组可以在 Windows 和 Linux 上使用的 xml 和 tcp/ip 标准库?对不起,如果这听起来像一个愚蠢的问题 - 我非常熟悉 C# 和 .NET,但我对原生 C++ 不是很熟悉 - 我真的不知道任何标准库,只知道语法.

I have this C# client that's handling xml and tcp/ip messages, and I have to convert it to C++, BUT - I have to convert it to C++ in such a way that it will run on both Windows and Linux. Is there a set of standard libraries for xml and tcp/ip that I can use on both Windows and Linux? Sorry if this sounds like a stupid question - I'm very familiar with C# and .NET, but I'm not very familiar with native C++ - I don't really know any of the standard libraries, just the syntax.

如果有帮助,这里是老板的确切信息.

In case it helps, here's the exact message from the boss.

1) 读取/创建非常简单的 XML,以及

1) read/create very simple XML, and

2) 使用 Windows 和 Linux 上都存在的库从 C++ 接收/发送 TCP 消息.希望有一个,然后您可以在 Windows 上进行开发,然后在 Linux 上进行快速测试.

2) receive/send TCP messages from C++ using a library that exists on both Windows and Linux. Hopefully there is one and you can then develop on Windows and just do a quick test on Linux.

推荐答案

Qt 会做你想做的想要.

同时赞同 Dani 的建议,您不妨在移植之前尝试在 Mono 上运行 C# 应用程序到 C++.

Also seconding Dani's suggestion that you might as well try to run C# applications on Mono before porting to C++.

这篇关于用于 Windows 和 Linux 的 c++ xml、tcp/ip 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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