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 CF21E11470 for ; Sat, 24 May 2014 08:53:43 +0000 (UTC) Received: (qmail 888 invoked by uid 500); 24 May 2014 08:53:43 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 841 invoked by uid 500); 24 May 2014 08:53:43 -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 833 invoked by uid 99); 24 May 2014 08:53:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 May 2014 08:53:43 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alex@alex.org.uk designates 89.16.176.221 as permitted sender) Received: from [89.16.176.221] (HELO mail.avalus.com) (89.16.176.221) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 May 2014 08:53:40 +0000 Received: by mail.avalus.com (Postfix) with ESMTPSA id 3E8EFC561CF; Sat, 24 May 2014 09:53:07 +0100 (BST) Subject: Re: tcp/ip sockets in apache module Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Alex Bligh In-Reply-To: Date: Sat, 24 May 2014 09:53:06 +0100 Cc: Alex Bligh Content-Transfer-Encoding: quoted-printable Message-Id: <67947BFF-91C5-4804-9075-11255086466B@alex.org.uk> References: To: modules-dev@httpd.apache.org X-Mailer: Apple Mail (2.1085) X-Virus-Checked: Checked by ClamAV on apache.org On 23 May 2014, at 18:27, 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. Not that small, but: https://github.com/abligh/apache-websocket --=20 Alex Bligh