1

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.

5 Answers 5

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

Indeed. Whatever kind of network communication you are using, it all comes down to bare sockets.
Naked sockets are temptingly affordable.. ;))
2

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.

Comments

2

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

Comments

1

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.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.