mirror of
https://github.com/curl/curl.git
synced 2026-08-06 10:56:14 +03:00
quic: use send/recvmmsg when available
add checks for sendmmsg in configure and CmakeLists.txt for enabling use of these functions in ngtcp2/quiche quic. Closes #14880
This commit is contained in:
parent
876f17ad24
commit
97c0f89bd0
7 changed files with 24 additions and 12 deletions
|
|
@ -169,6 +169,7 @@ static int get_address_family(curl_socket_t sockfd)
|
|||
{
|
||||
struct sockaddr addr;
|
||||
curl_socklen_t addrlen = sizeof(addr);
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
if(getsockname(sockfd, (struct sockaddr *)&addr, &addrlen) == 0)
|
||||
return addr.sa_family;
|
||||
return AF_UNSPEC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue