[comp.sys.mac.programmer] Getting SerialIO rapidly using THINK C 4.0

tonyg@batserver.cs.uq.oz.au (Tony Gedge) (01/16/90)

I am writing an application using THINK C 4.0 and the Class Libraries.
What I am trying to do is respond rapidly to data coming in via the
modem port.  When one or more character(s) appears on the modem
port, I'd like one of my class methods to be called to handle it.

Being a total ignoramus on how THINK C works, I want to know if the above
can be done without having to poll for IO in the main event loop and call
the class method from there.  (This is what I'm doing now, and the response
is very sluggish)

Is this possible using the Serial Driver and THINK C, or will I have to
go and get the Comm Toolbox to acheive this?

Please e-mail responses.  I'll summarize to the net.

-----------------------------------------------------------------------------
|  Tony Gedge                        |  tonyg@batserver.cs.uq.oz.au         |
|------------------------------------+--------------------------------------|
|  Computer Science Department,      |  "A split second is the time between |
|  University of Queensland,         |  when you press the return key and   |
|  Brisbane, Queensland, Australia.  |  when you realize that you've just   |
|                                    |  erased your hard disk." - Unknown   |
-----------------------------------------------------------------------------
--

-----------------------------------------------------------------------------
|  Tony Gedge                        |  tonyg@batserver.cs.uq.oz.au         |
|------------------------------------+--------------------------------------|