From owner-freebsd-hackers Fri Jul 28 14:46:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from bluerose.windmoon.nu (c255152-a.plstn1.sfba.home.com [24.176.132.48]) by hub.freebsd.org (Postfix) with ESMTP id 1E87637B6E5 for ; Fri, 28 Jul 2000 14:46:49 -0700 (PDT) (envelope-from fengyue@bluerose.windmoon.nu) Received: from localhost (fengyue@localhost) by bluerose.windmoon.nu (8.10.2/Windmoon/8.10.2) with ESMTP id e6SM0dS14798 for ; Fri, 28 Jul 2000 15:00:40 -0700 (PDT) Date: Fri, 28 Jul 2000 15:00:39 -0700 (PDT) From: FengYue To: freebsd-hackers@FreeBSD.ORG Subject: a quick one In-Reply-To: <3981F565.C6B12FCD@asl.dl.nec.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, a quick one. Is getpeername() considered expensive? Would it be much better if I cache the result myself instead of calling it everytime on the connected socket(returned from accept) to find out which IP it connects to? Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message