tags:

views:

133

answers:

5

Hi,

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.

+2  A: 

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

Aviator
Indeed. Whatever kind of network communication you are using, it all comes down to bare sockets.
Patrick
Naked sockets are temptingly affordable.. ;))
mlvljr
+1  A: 

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.

Cwan
+2  A: 

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.

R Samuel Klatchko
+2  A: 

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

StackedCrooked
A: 

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

obiltschnig