TomChapman
2012-02-05 21:52:21 UTC
I have written a program that is installed and runs on two different
servers on our network. Amongst other things the two programs talk to
each other using a TCP connection. I configure one of the programs to be
the TCP server and the other to be the TCP client. They then connect up
to each other and talk with each other.
The two programs are identical except for the configuration designating
one a TCP server and one a TCP client. So when we install these programs
on new servers pairs, we have to remember to designate one a server and
one a client.
I was wondering if there was some other way to handle designating the
server or client aspect? Is there some method people have used?
servers on our network. Amongst other things the two programs talk to
each other using a TCP connection. I configure one of the programs to be
the TCP server and the other to be the TCP client. They then connect up
to each other and talk with each other.
The two programs are identical except for the configuration designating
one a TCP server and one a TCP client. So when we install these programs
on new servers pairs, we have to remember to designate one a server and
one a client.
I was wondering if there was some other way to handle designating the
server or client aspect? Is there some method people have used?