curl-library
[PATCH] Re: info about connection (ip/port)
Date: Wed, 19 May 2010 14:48:49 +0200
Hi all
here is my first patch to get the infos about ips/ports of a connection.
I wasn't sure where the new functions to put, maybe/probably there are
better places.
cheers Frank
On 14/05/10 22:56, Daniel Stenberg wrote:
> On Wed, 12 May 2010, Frank Meier wrote:
>
>> Another way I see, would be to include the information to the info,
>> that could be retrieved by curl_easy_getinfo(). For example
>> CURLINFO_PRIMARY_IP already exists there, so we would only need the
>> fields LOCAL_IP, LOCAL_PORT, REMOTE_PORT. The advantage would be the
>> information stays persistent until the curlHandle is used again. If
>> there is no other (nice) way way to solve my problem I'd ask if this
>> addition could be beneficial for other people and if so, I'd write a
>> patch.
>
> I think such options would be sensible and mix in nicely with the
> rest. The REMOTE_PORT is of course fairly easy to figure out based on
> the URL, but an option will make that easier for apps.
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/plain attachment: curl-withipinfo.patch