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