开发者

Network programming using C++

How can we do network programming in C++ similar to Remoting in .NET? Please help with any tutorials.

It开发者_开发知识库 would be fine if I know how to enable two computers to communicate in the form of sending and receiving messages using C++/C#.

Thanks, Rakesh.


For windows, you can check out this. You could refer Beej's guide for Unix flavors.


C++ does not have any native networking libraries, so if you don't want to use OS specific calls, you are going to need to use a portability layer.

Two that come to mind are Boost ASIO and ACE.


You may want to have a look at the Poco C++ libraries. Especially the Net module.


For a pure C++ solution (as your first sentence suggests) that's also really simple to use, checkout RCF.

If you want to communicate between C# and C++ programs (as your second sentence suggests) you'll have to look elsewhere, sorry.


Check out our C++ Remoting framework. There's also a screencast showing how to use it.

This is probably the closest that you'll get to .NET Remoting in C++.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜