From owner-freebsd-hackers Fri Dec 6 12:11:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70DF537B401 for ; Fri, 6 Dec 2002 12:11:11 -0800 (PST) Received: from smtp030.tiscali.dk (smtp030.tiscali.dk [212.54.64.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B77043E4A for ; Fri, 6 Dec 2002 12:11:10 -0800 (PST) (envelope-from dslb@tiscali.dk) Received: from cpmail.dk.tiscali.com ([212.54.64.52]) by smtp030.tiscali.dk (8.12.5/8.12.5) with ESMTP id gB6K8lOu021239 for ; Fri, 6 Dec 2002 21:11:03 +0100 (MET) Received: from [213.237.112.252] by cpmail.dk.tiscali.com with HTTP; Fri, 6 Dec 2002 21:11:01 +0100 Date: Fri, 6 Dec 2002 21:11:01 +0100 Message-ID: <3D9FE7F60000921E@cpfe5.be.tisc.dk> From: dslb@tiscali.dk Subject: Re: accept() To: hackers@Freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002.12.06 20:55 Mike Hunter wrote: > You have to use a variable because accept may write to it (?). > > From the man page: > > The addrlen is a value-result parameter; it should initially contain > the > amount of space pointed to by addr; on return it will contain the > actual > length (in bytes) of the address returned. > > It doesn't make sense to cast the results of sizeof to a pointer. Ah ok, thanks. br socketd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message