Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site amiga.amiga.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!pyramid!amiga!tomp From: tomp@amiga.UUCP (Tom Pohorsky) Newsgroups: net.micro.amiga Subject: Re: serial driver query Message-ID: <469@amiga.amiga.UUCP> Date: Thu, 2-Jan-86 22:33:37 EST Article-I.D.: amiga.469 Posted: Thu Jan 2 22:33:37 1986 Date-Received: Sat, 4-Jan-86 06:24:48 EST References: <876@caip.RUTGERS.EDU> Reply-To: tomp@stella.UUCP (Tom Pohorsky) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 9 In article <876@caip.RUTGERS.EDU> louie@trantor.UMD.EDU writes: >The problem that I've run across is not being able to ask for, say, 20 >characters from the serial device driver without it blocking waiting for >all 20 to arrive. I'd like to say, give me up to 20 characters that >might already be buffered, or block if none are there. Under 1.1, DoIO the SDCMD_QUERY command. It will return (in the io_Actual field) the number of unread bytes in the serial.devices's input buffer. Then do a read of the "n" pending characters all at once.