The serial interface in rxtx is provided through the java native interface (JNI). The serial stuff for each platform is written to conform to the same JNI interface in C/C++ and compiled to dynamically linked libraries fro each platform. The portion of interest for you is not the java part but the code for the .dll's and .so's etc.
there's some code for openFrameworks:
http://openframeworks.cc/documentation#ofSerial-about
it's for windows & os x only, but it works.
best
joerg
Ge Wang schrieb:
> Hi Jeff!!
>
>> rxtx is cross platform for java and open source. you could have a look
>> at the native code for that.
>
> Thanks for the pointer! Unfortunately I should have also specified "in
> C or C++". I do have your wonderful Serial/Cereal code for windows.
> Currently searching for a equally compact and flexible implementation
> for OS X and Linux.
>
> Any additional hints/thoughts?
>
> Thanks again!
>
> Best,
> Ge!
>
>>
>> On 8/8/07, *Ge Wang* < gewang@cs.princeton.edu
>> <mailto: gewang@cs.princeton.edu>> wrote:
>>
>> Greetings,
>>
>> Does anyone know of any compact, portable (OS X, linux, windows)
>> library for performing serial port I/O? Google searches turn up much
>> code and suggestions, but is there a definitive (and yet concise)
>> library for doing cross-platform serial I/O? We are looking into
>> adding such support in ChucK. Much appreciate any leads!
>>
>> Best,
>> Ge!
>> _______________________________________________
>> chuck-dev mailing list
>> chuck-dev@lists.cs.princeton.edu
>> <mailto:chuck-dev@lists.cs.princeton.edu>
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
>>
>>
>> _______________________________________________
>> chuck-dev mailing list
>> chuck-dev@lists.cs.princeton.edu <mailto:chuck-dev@lists.cs.princeton.edu>
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> chuck-dev mailing list
> chuck-dev@lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
--
http://joerg.piringer.net
http://www.transacoustic-research.com
http://www.iftaf.org
http://www.vegetableorchestra.org/
_______________________________________________
chuck-dev mailing list
chuck-dev@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev