David Cuddeback

Results 31 comments of David Cuddeback

@mbr Interesting. I've never seen this method of setting a custom baud rate on Linux. Usually, I see the `TIOCSSERIAL`/`TIOCGSERIAL` ioctls, which is what I was planning to use when...

@mbr Thanks for the link. That was very informative. Sounds like `TCSETS2` is the way to go. I have some more reading to do on this, but I have to...

@tkornack Not just Mac, but Linux supports this too with a different ioctl.

@apoloval That's a valid use case, and actually it's one that I'm going to run into on an upcoming project. I'm not convinced that `try_clone()` is the best solution for...

@vvanders @apoloval I've been working on a crate that I thought would motivate this use case, but I ended up needing to wrap I/O in a mutex anyway. Implementing `Sync`...

@vvanders Yeah, I couldn't find much in the docs regarding thread safety, and I'm not very familiar with Windows APIs in general. It sounds like it may be possible to...

So I got something working for Unix TTY ports: https://github.com/dcuddeback/serial-rs/compare/feature/try-clone. It's not as simple as I expected because of the `TIOCNXCL` ioctl in the `Drop` impl. I had to add...

@gbip For your use case, you can probably work around it by wrapping the port in `Arc`. That's what I've done whenever I had this use case, because I had...

> I could help with Windows Duplicate Handle stuff and testing. Do you mind if I play around a bit forking the feature branch you got? @lowlifer That would be...

@gbip I'd appreciate it if you don't plug other projects here. I'm aware of serialport-rs. It's actually a fork of this project. Besides violating this project's MIT license by deleting...