Hi wizards,
I am working on a client-server type program, and wishes to use interrupt
driven socket I/O. The server (a separate process) will perform something
else when there is no message from the client. The reason that I chose interrupt
driven socket I/O allows the server to poll the sockets only when necessary.
I followed all the steps described in the Sun Network programming guide, and
have developed two C++ classes which allows me to send and receive messages
between the client and the server using the normal polling mechanism. But,
the interrupt driven socket does not work. The only time when the server
receives a SIGIO is when I first start up a client (and the client asks for
calls connect(). ). Sending messages down the socket does not generate a SIGIO.
Do I need to setup my machine (Sparc IPC) before I can use interrupt socket
driven I/O?
Also, in the NPG, in the same paragraph with the interrupt driven socket I/O,
it mentioned that we can also install a handler for SIGURG in the same way
as the SIGIO handler. (please refer to the manual for details). Is it an
implication that the sockets are also capable of generating SIGURG?
Thanks in advance
Wing C.
--
Canon Information Systems Research Australia Phone +61 2 805 2976
P.O. Box 313 North Ryde, NSW, Australia 2113 Fax: +61 2 805 2929