getinfo: added *_PRIMARY_PORT, *_LOCAL_IP and *_LOCAL_PORT

This commit is contained in:
Frank Meier
2010-06-05 00:29:09 +02:00
committed by Daniel Stenberg
parent 605207a3a6
commit 8098d9417c
10 changed files with 107 additions and 9 deletions

View File

@@ -911,6 +911,12 @@ struct PureInfo {
char ip[MAX_IPADR_LEN]; /* this buffer gets the numerical ip version stored
at the connect *attempt* so it will get the last
tried connect IP even on failures */
long port; /* the remote port the last connection was established to */
char localip[MAX_IPADR_LEN]; /* this buffer gets the numerical (local) ip
stored from where the last connection was
established */
long localport; /* the local (src) port the last connection
originated from */
struct curl_certinfo certs; /* info about the certs, only populated in
OpenSSL builds. Asked for with
CURLOPT_CERTINFO / CURLINFO_CERTINFO */