IPC between .NET and Java client applications

后端 未结 3 1495
南方客
南方客 2021-02-03 14:20

I must get two different client application talk without any kind of broker or server. What is the best method for IPC beween two process, Java and .NET?

It must able to

相关标签:
3条回答
  • 2021-02-03 14:41

    You can access WinAPI through JNI(Java) and PInvoke(C#). Use following WinAPI functions: CreateEvent SetEvent WaitForSingleObject CreateMutex ReleaseMutex CreateFileMapping (for share memory) MapViewOfFile UnmapViewOfFile

    0 讨论(0)
  • 2021-02-03 14:54

    I would use protobuf.

    Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.

    0 讨论(0)
  • 2021-02-03 14:59

    I am author of jni4net, open source intraprocess bridge between JVM and CLR. It's build on top of JNI and PInvoke. No C/C++ code needed. I hope it will help you.

    0 讨论(0)
提交回复
热议问题