Hello,
I have been using the O_NONBLOCK option to set up non-blocking
sockets under Solaris 2.x, and have tried using the same code
under SunOS 4.1.4 without success. The code compiles without
errors, but the sockets block forever when send() is called.
This was verified by trace'ing a running process.
In the man page, there is no discussion of O_NONBLOCK, but
/usr/include/sys/fcntlcom.h defines it, and indicates that it
provides POSIX semantics.
What do I need to do to properly set up a non-blocking socket
under SunOS 4? Use O_NDELAY? If so, what do I need to watch
out for? I didn't find much in Stevens' Adv. Prog. in UNIX Env.
except that O_NDELAY sounds like a Bad Thing.
Thanks,
Michael D'Errico
Software.com, Inc.
[In case my news software is still mis-configured, please