Path: utzoo!attcan!uunet!bu.edu!cs.bu.edu!ckd From: ckd@cs.bu.edu (Christopher Davis) Newsgroups: comp.lang.perl Subject: Async reading from two sockets? Message-ID: Date: 25 Sep 90 00:38:36 GMT Sender: news@bu.edu.bu.edu Organization: Boston University School of Management Lines: 16 Well, since you were all so helpful with my last request (thanks, folks!) I've come back for more... I have a program which binds two sockets, which we can call FOO and BAR. I want to read from *both* of them asynchronously as the information comes in. I'm used to using while() to get information from one, but how do I read from whichever one has data? Note: I need to keep track of which socket the data comes in on, so I don't think while( || ) would work... --Chris -- Christopher Davis, BU SMG '90 <...!bu.edu!bu-cs!ckd> "Dammit, we're all going to die, let's die doing something *useful*!" --Hal Clement on comments that space exploration is dangerous