How to create named pipe (mkfifo) in Android?

后端 未结 5 1854
南方客
南方客 2020-12-13 07:35

I am having trouble in creating named pipe in Android and the example below illustrates my dilemma:

res = mkfifo(\"/sdcard/fifo9000\", S_IRWXO);
if (res != 0         


        
5条回答
  •  生来不讨喜
    2020-12-13 08:17

    If you're coding this in Java, you should just use PipedInputStream and PipedOutputStream.

提交回复
热议问题