sockets

Guy Harris guy at auspex.auspex.com
Wed May 30 07:06:26 AEST 1990


>read(socket, buf, sizeof(buf)) is always returning sizeof(buf), even
>though that many characters weren't necessarily read into buf.

Are you absolutely certain of that?

>The man pages say something about ioctl(), and using
>"STREAMS message-nondiscard" mode, but I can't figure out how to do this.

You can't do that.  Sockets are not implemented as streams devices in
SunOS 4.x.



More information about the Comp.unix.wizards mailing list