Boost logo

Boost Users :

Subject: Re: [Boost-users] Read from serial devices on USB
From: Alejandro Martínez (elpeque2_at_[hidden])
Date: 2010-09-15 14:43:42


First of all, thank you for your time.

> It's not possible to list devices or get OS-specific data, but you can use
> the OS-API for that. native() will return the native type.

So i need to write specific code for each platform, right? What is the
type i get from that "native()" call in windows and in mac (the two
target platforms).? So i can search for the docs for each and then do
some... #ifdef PC, etc. And on what should i call such "native()"
method?

Can i assume the os-specifics "native type" for PC/WINDOWS ie(winxp,
2000, vista, 7, etc) to be the same or is that also a concern?

Are there any known libraries that wrap around this stuff to avoid
getting into this stuff?

Thank you again,
Ale

>> How can i do that?
>>
>> Can this same approach be used later for say... bluetooth serial devices?
>> How?
>
> The devices are usually handled similar, thus they are presented as "COM1"
> or "/dev/tty...". If the OS can load appropriate drivers, the API will gain
> access automatically.
> This abstraction also means, that you don't get access to the device itself,
> only to the serial connection.
>>
>> Thank you all in advance.
>>
>> Alejandro
>>
> Regards,
>
> michi7x7
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net