开发者

interactive communication console programs(like client-server) windows

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜