Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一些代码移植到 OpenVMS 并偶然发现了一个限制。
有一个poll()函数检查套接字数组中的事件,但不幸的是,其中一个文件描述符是通过pipe()函数创建的。这会导致问题并poll()返回errno = ENOTSOCK.
poll()
pipe()
errno = ENOTSOCK
管道文件描述符的原因是poll()通过将单个字节写入其输入端来故意中断/取消。
有没有办法创建类似于管道但使用套接字的东西?
谢谢并恭祝安康。