From: "Ara.T.Howard" Date: 2004-07-23T12:12:00+09:00 Subject: Re: sysread and buffered I/O --8323328-1315091075-1090551896=:8991 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1315091075-1090551896=:8991" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1315091075-1090551896=:8991 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 23 Jul 2004, Tanaka Akira wrote: > In article , > "Ara.T.Howard" writes: > >> IO.read >> >> actively takes characters from IO until EOF is found >> >> IO.receive >> >> passively receives any waiting characters from IO > > I see. > > However, another problem is it is confusing with BasicSocket#recv. > -- > Tanaka Akira i wouldn't chose the word 'confusing' - reading the man page of recv makes = it sound VERY close to what you want. however, using exactly 'recv' WOULD be confusing... checking on dictionary.com for receive : Entry: receive Function: verb Definition: accept Synonyms: accept, acquire, admit, apprehend, appropriate, arrogate, as= sume, be given, be informed, be told, catch, collect, come by, come into, c= op, corral, derive, draw, earn, gain, gather, get, get from, grab, hear, ho= ld, inherit, make, obtain, perceive, pick up, pocket, procure, pull, pull d= own, reap, redeem, secure, seize, snag, take, take in, take possession, win Concept: taking Source: Roget's New Millennium=E2=84=A2 Thesaurus, First Edition (v 1.= 0.5) Copyright =C2=A9 2004 by Lexico Publishing Group, LLC. All rights reserv= ed. Entry: receive so i'd suggest receive accept reap i like the sound of IO#reap alot, eg. : # # read all chars available on pipe # buf =3D pipe.reap i think this method is much needed and no name exists for something like it= =2E if we pick one that is memorable people will use it and remember it. cheers. -a -- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it.=20 | --Dogen =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D --8323328-1315091075-1090551896=:8991-- --8323328-1315091075-1090551896=:8991--