apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: apr_socket_recvfrom question
Date Wed, 25 Oct 2006 10:59:13 GMT
On Tue, Oct 24, 2006 at 11:59:41AM -0400, David Horowitz wrote:
> I'm wondering about apr_socket_recvfrom, specifically the "from" parameter.
> It is understood that "from" returns the apr_socketaddr_t of the sending
> socket upon return. However, I see discrepancies on whether "from" has any
> significance as an input parameter.
> APR test code indicates the "from" parameter is used as an input-output
> parameter, indicating upon input the sockets from which we are willing to
> receive data.

The test case is just resetting the port so it can check whether the 
implementation actually changes it.  Yes, the "from" parameter is just 
an "out" parameter, I've updated the header file to reflect this better, 



View raw message