libcurl-docs: CURLINFO_LOCAL_* work for QUIC as well as TCP

Also, CURLOPT_TCP_FASTOPEN is for TCP only.

Closes #14852
This commit is contained in:
Daniel Stenberg 2024-09-10 16:27:53 +02:00
parent a3bd1dda12
commit 28ca199d89
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
4 changed files with 14 additions and 8 deletions

View File

@ -10,7 +10,8 @@ See-also:
- curl_easy_getinfo (3)
- curl_easy_setopt (3)
Protocol:
- All
- TCP
- QUIC
Added-in: 7.21.0
---
@ -30,13 +31,13 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_IP, char **ip);
Pass a pointer to a char pointer to receive the pointer to a null-terminated
string holding the IP address of the local end of most recent connection done
with this **curl** handle. This string may be IPv6 when that is
enabled. Note that you get a pointer to a memory area that is reused at next
request so you need to copy the string if you want to keep the information.
with this **curl** handle. This string may be IPv6 when that is enabled. Note
that you get a pointer to a memory area that is reused at next request so you
need to copy the string if you want to keep the information.
The **ip** pointer is NULL or points to private memory. You MUST NOT free -
it gets freed when you call curl_easy_cleanup(3) on the corresponding
CURL handle.
The **ip** pointer is NULL or points to private memory. You MUST NOT free - it
gets freed when you call curl_easy_cleanup(3) on the corresponding CURL
handle.
# %PROTOCOLS%

View File

@ -6,6 +6,7 @@ Section: 3
Source: libcurl
Protocol:
- TCP
- QUIC
See-also:
- CURLINFO_LOCAL_IP (3)
- CURLINFO_PRIMARY_PORT (3)
@ -31,6 +32,9 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_PORT, long *portp);
Pass a pointer to a long to receive the local port number of the most recent
connection done with this **curl** handle.
If the connection was done using QUIC, the port number is a UDP port number,
otherwise it is a TCP port number.
# %PROTOCOLS%
# EXAMPLE

View File

@ -7,7 +7,7 @@ Source: libcurl
See-also:
- CURLOPT_SSL_FALSESTART (3)
Protocol:
- All
- TCP
Added-in: 7.49.0
---

View File

@ -178,6 +178,7 @@ my %knownprotos = (
'WSS' => 1,
'TLS' => 1,
'TCP' => 1,
'QUIC' => 1,
'All' => 1
);