Named pipes between Java and C/C++ programs

后端 未结 3 628
北恋
北恋 2021-01-21 17:38

I think of using in windows a named pipe to communicate between two apps written in Java and C. Normally i use socket connection to do this, but now i have to cancel this idea a

3条回答
  •  悲哀的现实
    2021-01-21 17:55

    In order to create a Windows named pipe in Java, you'd have to resort to using JNI to call the native WINAPI functions.

    You can create the named pipe in C++, though, and consume it in Java by opening it as a file in the pipe namespace after it has been created.

提交回复
热议问题