Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: share bus #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: share bus #25

wants to merge 1 commit into from

Conversation

notmmaoo
Copy link

@notmmaoo notmmaoo commented Dec 5, 2022

本次改动主要为了适用以下场景:

当目标BUS是独占打开时(也就是只能被一个进程打开时), 想通过多个进程相互通讯(例如UDS Client和UDS Server)并且有一个监视界面(例如web页面), 就限制了目标BUS只能打开一次,且生命周期等同于打开进程(对应RemoteServer). 每个连上的RemoteClient都能收到目标BUS所收到Message的副本, 且通过线成抢占发送Message.

@notmmaoo
Copy link
Author

notmmaoo commented Dec 5, 2022

translated by google

This change is mainly to apply to the following scenarios:

When the target BUS is opened exclusively (that is, when it can only be opened by one process), if you want to communicate with each other through multiple processes (such as UDS Client and UDS Server) and have a monitoring interface (such as a web page), the target BUS is limited It can only be opened once, and the life cycle is equal to the opening process (corresponding to RemoteServer). Each connected RemoteClient can receive a copy of the Message received by the target BUS, and send the Message through the line preemptively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant