Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Serial Serial Serial
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial Serial Serial



Hi,

Yes, I've been hearing some similar things about how to implement this, but
no concrete advice like "what format should each library be in", and how to
link the libraries to my application, and how to load them as necessary.

Also, I thought the IOKit was just used to *find* the serial ports, and then
you used the BSD open/read/write/close to actually use the serial port. What
IOKit routines can you use to send/receive data??

Adam

on 3/13/01 11:57 AM, Chris McKinnon at email@hidden wrote:

>> Any thoughts on how to port a serial port application to Mac OS X while
>> maintaining a version that works in Mac OS 9/8? Does it make sense to use
>> OTSerial instead of classic serial if we want to build are application with
>> Carbon libs?
>
> Hi,
>
> This was discussed a while back. I think the best solution (and the one I'm
> using) is to use libraries to implement your serial code. What you do is,
> make you application a Carbon app, and then create a non-Carbon library that
> implements Classic serial code, and another X library that implements IOKit
> serial code.
>
> I've also heard that you can use BSD routines (read, write, etc) instead of
> the IOKit. I was wondering if there are going to be "future issues" by doing
> this. Those routines are there now but are they staying? You know, low level
> vs. high level... Also, does your application have to be native (mach
> format?) to use them?
>
> Chris
> _______________________________________________
> opentransportdev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/opentransportdev




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.