From patchwork Sat Feb 29 11:37:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sourabh Sharma X-Patchwork-Id: 17970 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 4CB8744AC3E for ; Sat, 29 Feb 2020 13:37:49 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2CCE468B1AA; Sat, 29 Feb 2020 13:37:49 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5BE8068B154 for ; Sat, 29 Feb 2020 13:37:42 +0200 (EET) Received: by mail-ot1-f41.google.com with SMTP id x19so346343otp.7 for ; Sat, 29 Feb 2020 03:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rGXgCB/Lzr1iBLeRKaZvjm2ue0BGzmV47i8mefqhFFg=; b=Le9y7raQmAYwizUKZUJCC65jBmBMS6nWmqpf8fkSCLKOgo0leLS9mq94db698bZJcE scmu+dtUZfUXNy+Ao2jOb4AfY3m9YYt1X1u3npUYxFKvxfb7wwZGILwntd9djx5z2Vxr HUTqO/faxk+nVrlGXjteqjSlKbmLmQrk5eBbRTXM+pzLRFgNimnBeYsMWdnCLNujQ2vj mbKHc6G892OKMR+CfjwAchYlr+iB2jWbv1P6Td3IzYnrugsJ+ac4DTARZGBiDkzFG5+1 Ar1pz+R/t8uEPA5PCk1nqaUw3YGSgY0bNPHNqfHF2bGAi8ghFsFTsAMD0KX6gY6GhkSC bmYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rGXgCB/Lzr1iBLeRKaZvjm2ue0BGzmV47i8mefqhFFg=; b=Q84sZ9ayqKnmKGy0Umf0pCfSm6v8WlK14B9l5ObP91WuYVjiDT3CaCPWnMqHk3ePjb 152HlXIm3dUV3ox9VTULLXqcirAcdIGDMt9MN/eSudeISAPBZNgsWYbwt8wNqs2nwT+U 9zvMaiXcy+gCwYCitnY7Q6Uq825pY0PFyNhGVZ14aS9iXD1KvIp7Hx6FWXnBHs1In+gR RDMR3IaosrUDUFd1HGmd+G80+pQBknrezVHWG3CCMv8T/Fj/PJutk6L0I4UIJE5gfSpf mlmOVrR7pBOj20RTlYpwcTKhFIItkpUDSczr3UiSUMLMvAAY4vK98pF85Rhrq2T8hNxC oX/Q== X-Gm-Message-State: ANhLgQ0tBX5JCsQsZzn/rHOY3yPkiTuWvwC8k/lbO1LAPcHhCMp46rVg mykw1rxuUtHBDcKHquJZmgD2a+tH3W9hgg9aeeTw9y3GOJc= X-Google-Smtp-Source: ADFU+vsgzI3qpoqXMsvDouprm0SCX7m/qr7aN+mJvJybZnzbG82afoTR9sh14unW1h2aMBacua4DEyiolufoxTew/tg= X-Received: by 2002:a05:6830:1e9b:: with SMTP id n27mr257272otr.358.1582976260521; Sat, 29 Feb 2020 03:37:40 -0800 (PST) MIME-Version: 1.0 From: Sourabh Sharma Date: Sat, 29 Feb 2020 17:07:30 +0530 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH 1/1] Patch for adding Documentation of ff_http_match_no_proxy X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Patch for adding Documentation of ff_http_match_no_proxy Function ff_http_match_no_proxy check for host of proxy address matches with hostname or not. --- libavformat/network.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavformat/network.h b/libavformat/network.h index 71347e815b..cd533a7cbc 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -302,7 +302,13 @@ int ff_accept(int fd, int timeout, URLContext *h); int ff_listen_connect(int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h, int will_try_next); - +/** + * It Check for host of proxy address matches with hostname or not. + * + * @param no_proxy URL of proxy address + * @param hostname URL of hostname + * @return 0 if don't match, 1 for exactly match +*/ int ff_http_match_no_proxy(const char *no_proxy, const char *hostname); int ff_socket(int domain, int type, int protocol);