This is probably a frequent requerment, so I thought I'd ask here before
I re-invent another wheel.
We are using GDB to remotely debug processes. GDB runs on UNIX box 'A'
and GDB-Server runs on UNIX box B. GDB connects to GDB Server via a
socket.
However, in our configuration, a process on A can not establish a direct
connection to B, so a third machine C is used between the two which CAN
connect to both.
We therefore need a small proxy program which runs on the third machine
It waits for a socket connection from A and makes a socket connection to
B, and thus establishes a transparent connection between A (gdb) and B
(gdbserver).
I don't know very much about implementing sockets, but it strikes me
that there *must* be some sample code or a ready-made proxy program
source code somewhere on the net.
Can anyone suggest where I might find it?
(Incidentally the program will eventually need to service a second socet
connection aswell - I suppose this will be implemented in a second
thread.)
Thanks
Colin
Sent via Deja.com http://www.deja.com/
Before you buy.