Best IPC for VB6 and .net application

前端 未结 3 1164
离开以前
离开以前 2021-01-16 07:46

In our application (a document management system) we are supposed to be notified of screen changes (or notify the other program of screen changes) in order to keep the two a

3条回答
  •  既然无缘
    2021-01-16 08:05

    Named pipes and mailslots are still some of the best choices available, and they work cross-user as well as cross-process. Of course in Vista+ there are issues with processes running at different integrity levels, and security applies on earlier OSs as well - much like file security.

    TCP is always significantly slower within the same machine, probably even worse than WM_COPYDATA across processes.

    Using pipes or mailslots you can handle terminal services by making the session ID part of the name. TCP will always be challenged by its limited "namespace" of port numbers (imagine a hard drive that can only have files named 0 through 65535 - and each connection requires TWO port numbers).

提交回复
热议问题