简体   繁体   English

Windows Phone是否有_pipe()函数?

[英]Is there a _pipe() function for Windows Phone?

I have 我有

int from_fd[2], to_fd[2];
BOOST_ASSERT(_pipe(from_fd, 256, O_TEXT) != -1);

to redirect standard input/output of a thread to a pipe. 将线程的标准输入/输出重定向到管道。 It works for a PC. 它适用于PC。 Unfortunately, _pipe doesn't seem to be even defined for Windows Phone. 不幸的是,_pipe似乎甚至没有为Windows Phone定义。 The compiler reports the function can't be found. 编译器报告找不到该函数。 Is there any other alternative? 还有其他选择吗?

I'm trying to forward everything in standard output to a pipe that another thread in the process can read. 我正在尝试将标准输出中的所有内容转发到进程中的另一个线程可以读取的管道。

Windows RT do not support pipes. Windows RT不支持管道。 Use Windows sockets instead of pipes for IPC. 使用Windows套接字而不是管道进行IPC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM