apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Pocock <dan...@pocock.com.au>
Subject apr_socket_t hacking
Date Wed, 06 Feb 2013 20:59:43 GMT

I've observed (and expanded upon) a slightly naughty use case of
apr_socket_t in the Ganglia code base

Specifically, Ganglia tries to get the raw socket and use it for a
couple of things like getsockopt, as apr_getsockopt doesn't seem to work
on older apr versions:


So we do this little trick, defining the struct in our own code:


More recently, I wanted to add optional TLS support to dynalogin.  It
also uses APR sockets.  I repeated the same trick, but I'd prefer to
find a more elegant solution than:

 (accessing socketdes)

Can anyone comment on this?  In particular, how to get the socket, or
how to make TLS work with APR in some other way?

View raw message