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

Seperate open/close port from subscription? #3

Open
DanielJoyce opened this issue May 11, 2017 · 0 comments
Open

Seperate open/close port from subscription? #3

DanielJoyce opened this issue May 11, 2017 · 0 comments

Comments

@DanielJoyce
Copy link
Collaborator

Currently when you open a port opened by someone else, you are really subscribing to said port

When you close a port, the underlying serial port is not closed till all other clients close that port as well. Its more like unsubscription.

Should we seperate the two?

  1. Client who opens port gets write-lock to port
  2. Client which subscribes to port gets all read events
  3. Client with writelock can close port
    1. All other clients would be notified of closure
  4. unsubscribe does not close port, leaves port open but releases write locks
  5. other clients can then write lock port to get read/close control of it
  6. client dropping off does not close port either
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

No branches or pull requests

1 participant