By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,569 Members | 1,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,569 IT Pros & Developers. It's quick & easy.

Client and Server on the same program?

P: 4
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.
Apr 6 '13 #1
Share this Question
Share on Google+
2 Replies

P: 14
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..
Apr 7 '13 #2

P: 4
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(ServerFactory) that receive data from another program and pass some of the part of received data to another program via client(ClientFactory). That it.
Apr 7 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.