apr-dev mailing list archives

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


On 06/02/13 22:22, William A. Rowe Jr. wrote:
> 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.

Thanks for the fast reply

I've just started using it and it does exactly what is required:

https://github.com/dynalogin/dynalogin/commit/79ee543421f506b1ab8c3c375d0a65ae504f3590

Mime
View raw message