From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 20:38:14 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C2BE16A400 for ; Wed, 20 Jun 2007 20:38:14 +0000 (UTC) (envelope-from jdp@polstra.com) Received: from rock.polstra.com (rock.polstra.com [64.119.0.113]) by mx1.freebsd.org (Postfix) with ESMTP id 4BC8213C45E for ; Wed, 20 Jun 2007 20:38:14 +0000 (UTC) (envelope-from jdp@polstra.com) Received: from [10.0.0.64] (adsl-sj-11-62.rockisland.net [64.119.11.62]) (authenticated bits=0) by rock.polstra.com (8.13.8/8.13.8) with ESMTP id l5KKcB8a078798 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Jun 2007 13:38:11 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: <46799032.5060009@polstra.com> Date: Wed, 20 Jun 2007 13:38:10 -0700 From: John Polstra User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 To: Nicolas Cormier References: <467787EF.9060009@elischer.org> <46797825.10900@polstra.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (rock.polstra.com [64.119.0.113]); Wed, 20 Jun 2007 13:38:12 -0700 (PDT) Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: in-kernel tcp server X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 20:38:14 -0000 Nicolas Cormier wrote: > Thanks a lot for your answer, a last question "why did you not used > so* functions ?" Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management interface, too. For my application, I found that going through the socket layer (the so* functions and/or ng_ksocket) hurt performance too much. That's why I ended up bypassing them. John