CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Client Server

  1. #1
    Join Date
    Apr 1999
    Posts
    18

    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

  2. #2
    Join Date
    May 1999
    Location
    Atlanta, GA, USA
    Posts
    443

    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-


  3. #3
    Join Date
    May 1999
    Posts
    23

    Re: Client Server

    Absolutely. I've done it myself. Just use a flag making the program start as a client or server.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured