+.Pp
+.Dv SO_NREAD
+returns the amount of data in the input buffer that is available to be received.
+For datagram oriented sockets,
+.Dv SO_NREAD
+returns the size of the first packet -- this differs from the
+.Fn ioctl
+command
+.Dv FIONREAD
+that returns the total amount of data available.
+.Pp
+.Dv SO_NWRITE
+returns the amount of data in the output buffer not yet sent by the protocol.