apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe Jr." <wr...@rowe-clan.net>
Subject Re: apr_socket_t hacking
Date Wed, 06 Feb 2013 21:22:25 GMT
On Wed, 06 Feb 2013 21:59:43 +0100
Daniel Pocock <daniel@pocock.com.au> wrote:
> 
> 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:
> 
> https://github.com/dynalogin/dynalogin/blob/master/dynalogind/dynalogind.c#L429
>  (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?

Were you looking for something like apr_os_sock_get(),
apr_os_sock_put() and apr_os_sock_make()?

20/20 hindsite, I wish we hadn't abbreviated it to sock when the
base type was apr_socket_t.

Mime
View raw message