From dev-return-8919-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Tue Jan 07 01:01:16 2003 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 96970 invoked by uid 500); 7 Jan 2003 01:01:15 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 96959 invoked from network); 7 Jan 2003 01:01:15 -0000 X-Injected-Via-Gmane: http://gmane.org/ To: dev@apr.apache.org Path: not-for-mail From: Neil Schemenauer Subject: Buffer write to socket? Date: Tue, 7 Jan 2003 00:28:22 +0000 (UTC) Lines: 15 Message-ID: X-Complaints-To: usenet@main.gmane.org User-Agent: slrn/0.9.7.4 (Linux) Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N [I hope this is the right place since I don't see a apr-users list] What's the best way to do buffered IO on a socket using APR? Using Apache 1.3 I would use ap_bcreate, ap_bpushfd, and then ap_bwrite. I see that the apr_file* interface can do buffering but it looks like the socket interface does not. I don't really get buckets yet. It looks like they have basically replaced "BUFF *" in Apache 2. It's seems like they are overkill for my application though since I just want to write to a socket and don't need any filtering. Thanks for any clues. Neil