Transparent communication by way of proxy?
From: Derek (user_at_nospam.org)
Date: 10/13/04
- Next message: Alun Jones [MSFT]: "Re: WSASend()"
- Previous message: Alexander Nickolov: "Re: 8159 bytes takes 20 ms, 8160 bytes takes 200 ms?"
- Next in thread: Eugene Gershnik: "Re: Transparent communication by way of proxy?"
- Reply: Eugene Gershnik: "Re: Transparent communication by way of proxy?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 16:35:53 -0400
I'm new to network programming and Win32 and I could
use some advice about solving a communication problem.
I currently have a setup that looks like this:
Computer AAA Computer BBB
------------ ------------
Process A <-- TCP/IP --> Process B
Processes A and B communicate over TCP/IP using a
higher level protocol that's not important to this
discussion (pretend it's FTP or HTTP if you want).
The problem is that computer AAA is on my network and
BBB is at my client's site, and their business folks
insist that I use a specific middle-ware messaging layer
for communication between AAA and BBB. To accomplish
this I would like to write a proxy process that forwards
TCP/IP traffic between Process A and B transparently:
Computer AAA Computer BBB
------------ ------------
Process A Process B
| |
TCP/IP TCP/IP
| |
Proxy B <-- Middleware --> Proxy A
Messaging
My idea is this: if A wants to talk to B, it will talk
to Proxy B instead, which will in turn package the raw
packets as binary message data to send to Proxy A, which
will in turn send the packets for Process B to consume.
I know I haven't provided much detail, but is this proxy
idea possible?
I assume I will have to grab raw packets using winpcap
or a similar library. I also suspect the proxy process
will have to tweak IP packet headers to fool Process A
and B into thinking they are communicating directly,
right?
I am currently prototyping this proxy solution in C/C++
on WinXP, but in production I may be forced to use Win2k
instead.
Thanks for any input.
Derek
- Next message: Alun Jones [MSFT]: "Re: WSASend()"
- Previous message: Alexander Nickolov: "Re: 8159 bytes takes 20 ms, 8160 bytes takes 200 ms?"
- Next in thread: Eugene Gershnik: "Re: Transparent communication by way of proxy?"
- Reply: Eugene Gershnik: "Re: Transparent communication by way of proxy?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|