开发者

interactive communication console programs(like client-server) windows

开发者 https://www.devze.com 2022-12-16 09:45 出处:网络
I have two consol开发者_StackOverflow中文版e programs (ex. first - client, second - server). Do Windows have a command or resource to connect it?

I have two consol开发者_StackOverflow中文版e 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)


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 :)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消