[comp.sys.mac.programmer] Communications Toolbox Problem

urlichs@smurf.sub.org (Matthias Urlichs) (05/03/91)

I'm writing a communications tool. "Normal" communication (i.e. typing
characters and seeing them on the other screen) already work fine.

However, when sending data to that module with the Text file transfer tool,
the following sequence of events occurs:
- my Write routine gets called, async / infinite timeout.
  It can't complete yet, so it zeroes out the CMDataBufferPtr->count and
  ConnHandle->asyncCount[dataOut] fields and returns.
- my Status code now returns with statusDWPend set.
- Unfortunately, the transfer's progress bar continues to advance;
  eventually the transfer "completes" with lost data.

Under the Surfer example program, the same thing happens except that my Write
code gets called synchronously and with a timeout of zero and that the Status
routine doesn't set the flag (obviously).

I have the Communication Toolbox reference, version 1.0.
I also have the sample code but I don't think I have to tell anybody that
they aren't helpful at all. :-(

Any helpful hints? The whole thing is, as usual, extremely urgent. :-(

-- 
Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de     /(o\
Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330)   \o)/