|
|
windows 的 win32 api 有没有类似 unix popen() 的功能的东西 har ?
简单来讲, 我要的功能是 可以跑着我的程序 process A, on run time 的 开 另一个 process B,然后得到process B的 stdin 的handle , 好让我可以redirect 我要 的东西到从process A 到 processB 的 stdin    ( on process A run time 而不是 process A结束后) 
win32 有没有类似功能的东西吗?
[ 本帖最后由 tensaix2j 于 30-10-2008 07:08 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
发表于 30-10-2008 07:19 PM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
发表于 31-10-2008 11:37 AM
|
显示全部楼层
有IOCOMPLETEIONQUEUE
用LOCAL SOCKET应该是最容易的
python就有
http://www.codeguru.cn/WebServer/Python-Programming-on-Win32/ch17.htm
[ 本帖最后由 aquamax 于 31-10-2008 11:44 AM 编辑 ] |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 31-10-2008 01:50 PM
|
显示全部楼层
IPC 我知道用nameless socket pair 最简单
但假设 processB是我不可以改的部分,但我 知道 它会不停的 read from stdin 的话呢?
[ 本帖最后由 tensaix2j 于 31-10-2008 01:59 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
发表于 1-11-2008 02:09 AM
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 1-11-2008 01:49 PM
|
显示全部楼层
棒! 正是我要的。
谢谢你, aqua!! |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|