views:

36

answers:

2

I have two console programs (ex. first - client, second - server). Do Windows have a command or resource to connect it?

Client ask question, Server answer.

Anyone encountered this problem? (just win)

A: 

Client - Server is a programming model. As you are refering to programs and not scripts, this means you have to applications and you are simply have two corresponding windows instead of UI. You should look into interprocess communication, or tcp server-client, etc. in whichever lanuage you use.

//if I understood fully what you mean :)

Aggelos Mpimpoudis
A: 

Windows have pipes :

dir | sort

| sends data from one program to another via usual IO.

Bidirectial transfers are not that simple, unfortunately.

If you need bi-dir, you'll have to mess around sockets and stuff.

BarsMonster