From 461caa5c06e0c15cc9d4f892a51e91fb6c32fcbd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 25 Oct 1999 13:45:10 +0000 Subject: Swapped SO_SNDWAKEUP and SO_RCVWAKEUP in many places since they were backwards. --- doc/networking/networkapp.t | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'doc/networking') diff --git a/doc/networking/networkapp.t b/doc/networking/networkapp.t index 144eb54c49..add488481c 100644 --- a/doc/networking/networkapp.t +++ b/doc/networking/networkapp.t @@ -342,22 +342,21 @@ structure has the following fields: @end example These options are used to set a function to be called when there is -data available from the socket (@code{SO_SNDWAKEUP}) and when there is space -available to accept data written to the socket (@code{SO_RCVWAKEUP}). +data available from the socket (@code{SO_RCVWAKEUP}) and when there is space +available to accept data written to the socket (@code{SO_SNDWAKEUP}). -If @code{setsockopt} is called with the @code{SO_SNDWAKEUP} option, and the +If @code{setsockopt} is called with the @code{SO_RCVWAKEUP} option, and the @code{sw_pfn} field is not zero, then when there is data available to be read from the socket, the function pointed to by the @code{sw_pfn} field will be called. A pointer to the socket structure will be passed as the first -argument to the function. The @code{sw_arg} field -set by the @code{SO_SNDWAKEUP} -call will be passed as the second argument to the function. - -If @code{setsockopt} is called with the @code{SO_RCVWAKEUP} -function, and the @code{sw_pfn} -field is not zero, then when there is space available to accept data -written to the socket, the function pointed to by the @code{sw_pfn} field +argument to the function. The @code{sw_arg} field set by the +@code{SO_RCVWAKEUP} call will be passed as the second argument to the function. + +If @code{setsockopt} is called with the @code{SO_SNDWAKEUP} +function, and the @code{sw_pfn} field is not zero, then when +there is space available to accept data written to the socket, +the function pointed to by the @code{sw_pfn} field will be called. The arguments passed to the function will be as with @code{SO_SNDWAKEUP}. -- cgit v1.2.3