1
votes

I have a WCF service that uses duplex contracts via a netTCP binding. It's basically a chat server that relays the messages it receives to the connected clients. The service, and the C# client work great.

What I want to do is create an unmanaged C++ client for the service. Is this possible? And if so, how is this achieved?

I'm ok with using 3rd party libraries, just no .Net

1

1 Answers

1
votes

use the little-known WWS - Windows Web Services. This is basically WCF but native code. Its much smaller in size and much faster - MSDN magazine shows some benchmarks (yeah, ok) that say WWS handling SOAP is faster than WCF's Net.TCP. WWS net.tcp calls are several times faster than WCF :)

WWS also runs with a much reduced working set, 500kb vs 4.5mb for the simplest of simple services.

That link has sample code for you.

I think you get this library for free in Windows 7. You can get it for XP as a separate download.