bluetooth-serial-port icon indicating copy to clipboard operation
bluetooth-serial-port copied to clipboard

Implement win32 support

Open Dushistov opened this issue 7 years ago • 7 comments

I'va started today work on win32 support, so I create this issue to coordinate work on this issue.

Dushistov avatar Mar 24 '17 06:03 Dushistov

Thank you for taking this on. The problem I faced with Win32 support was mio, which doesn't (didn't?) have a way to use a raw file descriptor in a event loop.

kaegi avatar Mar 24 '17 17:03 kaegi

@kaegi mio have Binding type, but looks like at now to use it you need copy/paste whole TcpStream implementatino for windows:

https://github.com/carllerche/mio/issues/578

Dushistov avatar Mar 27 '17 15:03 Dushistov

Any news on this? I need a cross-platform bluetooth library like this.

s5bug avatar Apr 01 '18 02:04 s5bug

@TsundereBug I have working implementation for bluetooth win32 sockets, but API only similar to kaegi/bluetooth-serial-port, so it is not cross-platform, and has no mio support, because of I think that re-implementation of win32 sockets is too much waste.

Dushistov avatar Apr 01 '18 05:04 Dushistov

Is there a library I should go to for cross-platform bluetooth use?

s5bug avatar Apr 01 '18 15:04 s5bug

@Dushistov, I see you have an updated fork of your own, but you also mentioned WIP implementation on win32 support. Have you had any progress with it?

leon0399 avatar May 07 '23 10:05 leon0399

@leon0399

Have you had any progress with it?

As I remember I created separate implementation for win32 not related to this crate, because of it was too hard to convince mio maintainers to support not TCP/UDP sockets.

And after that Windows removed from supported OSes for project that I worked on, so I don't care about win32 support now.

Dushistov avatar May 07 '23 11:05 Dushistov