Michal Szymaniak <[EMAIL PROTECTED]> writes:

>               First: in apr there are functions apr_socket_data_set/get.
> This name can be misleading, as they do not associate the data with
> the socket, but with the pool where the socket resides. If I create
> two sockets in the process pool (because they should survive restarts),
> they will share the same data. Therefore, these functions cannot be used
> to implement any socket-private user data, or to distinguish between
> sockets.

my suggestion: post the description of the first issue to
[EMAIL PROTECTED] with subject "apr_socket_data_set/get" broken; patch
optional 

> And the distinguishing is another thing: at the moment it is not possible
> to distiguish between TCP and UDP socket using the same local address and
> port. In particular, routine reusing sockets in server/listen.c can reuse
> UDP socket from local port 80 and try to use it as a main http socket.
> Funny thing - probably on each architecture-version of the apr_socket_t
> structure there is a 'type' field. However, it inaccessible for a module
> without including the architecture-dependent networkio.h header (which is
> bad by nature). A simple apr_socket_type function would do..

my suggestion: post the description of the second issue to
[EMAIL PROTECTED] with subject "need to find type of socket"; patch
optional, but it is simple so why not?  I'd suggest
apr_socket_type_get() as the name.

-- 
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...

Reply via email to