Question about sockets (asynch)

Roberto A. Banos Alvarez rbanos at mtecv2.mty.itesm.mx
Sat Jun 8 07:25:52 AEST 1991


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 at mtecv2.mty.itesm.mx
rbanos at next00.mty.itesm.mx



More information about the Comp.unix.programmer mailing list