Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C99811E17 for ; Fri, 23 May 2014 18:14:11 +0000 (UTC) Received: (qmail 55789 invoked by uid 500); 23 May 2014 18:14:11 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 55745 invoked by uid 500); 23 May 2014 18:14:11 -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 55737 invoked by uid 99); 23 May 2014 18:14:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 18:14:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trawick@gmail.com designates 74.125.82.181 as permitted sender) Received: from [74.125.82.181] (HELO mail-we0-f181.google.com) (74.125.82.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 18:14:08 +0000 Received: by mail-we0-f181.google.com with SMTP id w61so5129808wes.26 for ; Fri, 23 May 2014 11:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UkOwTisFrhj+fRhhsyQKg6ipdpKv2ln3MIVBc2XG19U=; b=o4vJRtZzPG1jyFcVMR0KImchX85+BlQuY84YTgxToeITZPQWoP3FoGgt44SUDkOma4 TagIuJ3CTm3s1Au1RQpGbuueJ105E1WDc76AW3cA//xfyfE2vYifDZQi9L46+RKkWI7f N4Wd+DRoM+P3pXw8tSkvOXejcNd1ycTuGdwlyU+8ZQYCKX94E2ffWIhqOZxbrLtWNU3v RwhH8yCbLlVxh65gVctmmSYMciRDwwyiM0ngiDwr3UTYto5yf1Jh1f8+KeYJahBfZPWB KGRX/0jq5KHATNdVHtwLo66NW+m0Uf/3FrLc5bisvqYM9Up5WH/Y9BUjSdGpkCvN/FMp /TtQ== MIME-Version: 1.0 X-Received: by 10.194.176.135 with SMTP id ci7mr5886310wjc.54.1400868825393; Fri, 23 May 2014 11:13:45 -0700 (PDT) Received: by 10.216.176.199 with HTTP; Fri, 23 May 2014 11:13:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 23 May 2014 14:13:45 -0400 Message-ID: Subject: Re: tcp/ip sockets in apache module From: Jeff Trawick To: "modules-dev@httpd.apache.org" Content-Type: multipart/alternative; boundary=089e013d1a1ab6f31b04fa153080 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d1a1ab6f31b04fa153080 Content-Type: text/plain; charset=UTF-8 On Fri, May 23, 2014 at 1:58 PM, Jeremy Thompson wrote: > I'Ll give that a shot. I'Ve used source level debugging in IDE's but it > looks like I'Ll be using GDB for this one. Thanks. > Have a look at http://httpd.apache.org/dev/debugging.html On Windows, you can start httpd normally and attach to the httpd child process from the Visual Studio IDE in order to debug. > > > > > > On 5/23/14 10:41 , "Jeff Trawick" wrote: > > >On Fri, May 23, 2014 at 1:27 PM, Jeremy Thompson > > >> wrote: > > > >> I'm trying to write a module for apache. I've successfully compile in a > >> test module that doesn't do a whole lot yet. I would like to be able to > >> use > >> tcp/ip sockets in the module to talk to another server. I added in some > >> test code that should connect to my listening server and say hello > >>whenever > >> a request is made. I'm not getting any errors upon compiling the module > >> with the sockets stuff added but its not actually doing anything. > >> Basically > >> its ignoring my connect and send code. Does anyone have a small working > >> example of this or am I just way off base in using TCP/IP for external > >> communication to a module. Thanks. > >> > >> ~Jeremy > >> > >> > >You need to know how to step through your code with a source level > >debugger > >so you can figure out these sorts of problems on your own. > > > >Do you know how to do that? Are you trying but it isn't stopping in your > >code? Is there some other issue with source level debugging? > > > >-- > >Born in Roswell... married an alien... > >http://emptyhammock.com/ > >http://edjective.org/ > > > > -- Born in Roswell... married an alien... http://emptyhammock.com/ http://edjective.org/ --089e013d1a1ab6f31b04fa153080--