Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 75706 invoked from network); 23 Oct 2010 12:09:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Oct 2010 12:09:32 -0000 Received: (qmail 31946 invoked by uid 500); 23 Oct 2010 12:09:31 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 31781 invoked by uid 500); 23 Oct 2010 12:09:29 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 31773 invoked by uid 99); 23 Oct 2010 12:09:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Oct 2010 12:09:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of info@bnoordhuis.nl designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-ew0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Oct 2010 12:09:21 +0000 Received: by ewy3 with SMTP id 3so1169478ewy.18 for ; Sat, 23 Oct 2010 05:08:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.28.141 with SMTP id m13mr4219119ebc.22.1287835739596; Sat, 23 Oct 2010 05:08:59 -0700 (PDT) Received: by 10.14.121.20 with HTTP; Sat, 23 Oct 2010 05:08:59 -0700 (PDT) X-Originating-IP: [87.214.96.125] In-Reply-To: References: Date: Sat, 23 Oct 2010 14:08:59 +0200 Message-ID: Subject: Re: How to access client socket from a protocol handler From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Sat, Oct 23, 2010 at 10:13, Alexander Farber wrote: > I wonder why my mod_perl module works and the C one not. Your connection handler should return DECLINED for vhosts it doesn't handle (I wager mod_perl did this for you). You can get the vhost with conn->base_server and your module's per-server config with ap_get_module_config(conn->base_server->module_config, &your_module).