Using COM for interprocess communication?

From: Jeffery Kohler (jefferykohler_at_hotmail.com)
Date: 11/09/04


Date: Tue, 09 Nov 2004 12:48:00 -0500

Hi folks,

I'm entirely new to the whole Windows programming game -- I'm mostly
experienced in Java and unix programmingm. I could use some advice.
I'm starting a new project that involves getting two programs to work
together. I have a client/server (well, P2P) application which I want
to modify so I can route all of the network traffic through a proxy
process like so:

Client <--> Proxy <--> { Internet } <--> Proxy <--> Server

I'm trying to decide on a method of communication between the
client/server application and the proxy. I figure I could use plain old
socket connections (since the client/server app is built for that
already) locally. This is fine and would certainly save me some work,
but I don't want the user's local firewalling software (say, something
like ZoneAlarm, etc..) to stop this from happening. I'm trying to avoid
even a popup confirmation dialog.

Basically, I want the two processes, client/server and proxy, to work
together seemlessly, yet still retain their independance. So, I'm
wondering if I can use COM somehow. One thought I had was to tear out
the networking aspect to the client/server app and make the app into a
COM component which exposes an interface for its communications. I
could then modify the proxy program to shuttle data between it and the
internet...? Can COM be used to do this sort of interprocess
communication (essentially replacing sockets)?

I know I haven't provided much detail, but is this a good scenerio for
using COM?

Also, could you recommend any good reference sites/books I could use to
start wrapping my head around this stuff.

Thanks for any input.

Jeffery



Relevant Pages

  • Re: Collections in Webservices.
    ... you can create a dynamic proxy generator that provides the programming ... >> to the assembly in your calling application. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • get file from webserver
    ... I can create TCP connection and use socket programming to get the ... I can use UDP and socket programming to get the file. ... Once I connected to server on port 80, how can I locate the file on ... Will this work behind proxy?? ...
    (microsoft.public.win32.programmer.networks)

Loading