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

Finish WindowsBinding reading #994

Closed
reconbot opened this issue Nov 5, 2016 · 7 comments
Closed

Finish WindowsBinding reading #994

reconbot opened this issue Nov 5, 2016 · 7 comments

Comments

@reconbot
Copy link
Member

reconbot commented Nov 5, 2016

Follow up from #906 which removed the read loop from the windows binding but didn't yet add in a new read() function that worked.

@reconbot reconbot mentioned this issue Nov 5, 2016
@munyirik
Copy link

This looks like it will require a Read method to be added to serialport.cpp. Is that correct?

@reconbot
Copy link
Member Author

reconbot commented Nov 11, 2016

yep

@munyirik
Copy link

Should reads be queueable?

@reconbot
Copy link
Member Author

They don't need to be, we're guaranteeing not to call it again until the
callback returns, as long as the binding guarantees to always return at
least one byte of data. (We use epoll on Unix, I forget the method on
Windows)

On Fri, Nov 11, 2016, 6:31 PM Mũnyĩrĩ Kamau notifications@github.com
wrote:

Should reads be queueable?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#994 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABlbuQ8PaTljip6bWyi8XiF0MEaWQYqks5q9Pq4gaJpZM4KqHrt
.

@munyirik
Copy link

How were you thinking of handling data events? (since AfterOpenSuccess/EIO_WatchPort have been removed).

@reconbot
Copy link
Member Author

When someone wants data they ask for it, if no data is available read won't return until there is data. The stream mechanics take care of continuously asking for data in streaming mode. No events needed.

@reconbot
Copy link
Member Author

This is already done thanks to @munyirik =)

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants