-
Client Server
Is it possible to make a program that is both a client and a server, then run the same app twice while testing it on the same computer from the same ISP and IP, to test whether it will send a file over the internet to a remote computer?
Of all the things I've lost I miss my mind the most
-
Re: Client Server
Hi.
Even though I don't understand why you want to write the code of both
Client and Server program at one application, this is possible.
However, when you start your program, you must have a choice of
which you want to start this program by Client or Server.
For example, when you use check box, you will write the separate
code in one application partly because we put on CSocket and CObject
class at both Client and Server, for example.
HTH.
-Masaaki Onishi-
-
Re: Client Server
Absolutely. I've done it myself. Just use a flag making the program start as a client or server.