Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!mtecv2!rbanos From: rbanos@mtecv2.mty.itesm.mx (Roberto A. Banos Alvarez) Newsgroups: comp.unix.programmer Subject: Question about sockets (asynch) Keywords: sockets Message-ID: <3449@mtecv2.mty.itesm.mx> Date: 7 Jun 91 21:25:52 GMT Organization: ITESM. Campus Monterrey Lines: 15 I have a process that has to listen for streams and datagrams. Obviusly, (I think) I can't have a blocking-accept for either stream or datagram msg. So, I decided to have two different sockets with non-blocking accepts and a loop with a select to test if there's a message pending. This works OK, but it loads the system. Is there a way to optimize this? Maybe generating a signal when a message arrives... If so, please send me a short example. Thank you in advance for any help!!! Roberto rbanos@mtecv2.mty.itesm.mx rbanos@next00.mty.itesm.mx