Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 83281 invoked from network); 6 Jul 2004 20:40:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Jul 2004 20:40:50 -0000 Received: (qmail 35230 invoked by uid 500); 6 Jul 2004 20:40:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 35212 invoked by uid 500); 6 Jul 2004 20:40:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 35194 invoked by uid 99); 6 Jul 2004 20:40:51 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 06 Jul 2004 13:40:48 -0700 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bhwjk-0002vv-00 for ; Tue, 06 Jul 2004 22:40:22 +0200 Received: from figment1.gs.com ([199.29.247.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jul 2004 22:40:20 +0200 Received: from groups by figment1.gs.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Jul 2004 22:40:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@httpd.apache.org From: ilya gordon Date: Tue, 6 Jul 2004 19:32:54 +0000 (UTC) Lines: 31 Message-ID: References: <64588.24.191.62.221.1088803165.squirrel@24.191.62.221> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 199.29.247.140 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9) Sender: news X-Virus-Checked: Checked Subject: [users@httpd] Re: Apache 2.0 Buffered I/O API question X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Nick Kew webthing.com> writes: > > On Fri, 2 Jul 2004, ilya gordon wrote: > > > These set of functions is completely missing from the new Apache 2.0 API. > > Does anybody know what they are replaced with. > > Not unless you tell us what you need that isn't provided for by the > ap_rwrite() and/or ap_fwrite() family of buffered IO functions. > This is what I have right now in a module for ver 1.3 that I am trying to convert to 2.0 API buffer = ap_bcreate( r->pool, B_RDWR ); ap_bpushfd( buffer, socket, socket ); >From what I understand this creates a i/o buffer in the pool with READ and WRITE permissions. Then with ap_bpushfd it connects the buffer to the read/write streams of the socket. To print to the socket I do something like ap_bprintf( buffer, "Hello %s!\r\n", name); Since ap_bcreate() is missing from 2.0 API, how would I convert this properly to the new 2.0 API. Thanks --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org