cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: info about connection (ip/port)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 14 May 2010 22:56:08 +0200 (CEST)

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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-14