CompuServe Messages

#Multiple WaitPort()s

    15-Apr-88 19:50:11
Fm: Art Steinmetz 76044,3204
To: Steve Faiwiszewski 74106,425
Thanks alot, Steve (and Jim V.) for the helpful tip with Wait(). Like I thought, it is quite simple to monitor multiple ports but I never would of found out how on my own. Re: Your Serial routines. My port was identical to yours (not much chance for variation) with the exception that I do make the buffer length a CARDINAL. It might not be likely but the user module could request a read from the serial port that exceeds the maximum length of the buffer. If you agree that this is bad I'll undertake to U/L the slightly modified version. This is the only mod: PROCEDURE SerWrite(VAR Buffer : ARRAY OF BYTE; Length: CARDINAL); (* and SerRead *) WITH WriteRequest^ DO IOSer.ioLength := LONGCARD(Length); END; This raises a question. With the smaller 32K buffer allowed by Benchmark would high speed serial communications be tougher? MIDI is 31,250BPS. That's one second to fill the buffer – or am I confusing units somewhere. Finally, I'll continue to whack at your RawDemo for Benchmark. I was anxious to get the serial port flying 'cuz I am working on a nifty little utility that HASN'T BEEN DONE YET! — Art