Client and Server on the same program?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Moore John
    New Member
    • Apr 2013
    • 4

    Client and Server on the same program?

    Hi, I want to write a program that serve as server and also be able to connect with another server(client for that server). Is it possible? The logic is wrong. I want to write that because the program that I want to write is used to pass the data(message) from one program to another.
    Thanks
  • Nosia
    New Member
    • Mar 2013
    • 14

    #2
    hello
    i just want to understand why do want to write a single program to do this?
    you can write two different programs and run them at the same machine and connect them simply with a socket..the first acts as a server and sends msgs to the second which acts as a client to that server..they connect throw an IP adress and a port number..

    wish you luck..

    Comment

    • Moore John
      New Member
      • Apr 2013
      • 4

      #3
      Hi, I am not going to use these two for sending data between them. I want to use to pass the data that is coming from other program. That means, the server(ServerFa ctory) that receive data from another program and pass some of the part of received data to another program via client(ClientFa ctory). That it.

      Comment

      Working...