From owner-freebsd-net Thu Sep 2 2:34:47 1999 Delivered-To: freebsd-net@freebsd.org Received: from havoc.entera.com (havoc.maxagility.com [206.165.109.130]) by hub.freebsd.org (Postfix) with ESMTP id BF17714E76 for ; Thu, 2 Sep 1999 02:34:41 -0700 (PDT) (envelope-from davel@entera.com) Received: from warhawk.entera.com ([206.165.109.147]) by havoc.entera.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-52658U100L100S0V35) with ESMTP id AAA424 for ; Thu, 2 Sep 1999 02:45:37 -0700 Received: from entera.com (localhost [127.0.0.1]) by warhawk.entera.com (8.9.1b+Sun/8.9.1) with ESMTP id CAA11269 for ; Thu, 2 Sep 1999 02:34:11 -0700 (PDT) Message-Id: <199909020934.CAA11269@warhawk.entera.com> To: freebsd-net@freebsd.org Subject: Re: TCP socket performance? References: <199909020149.SAA02570@warhawk.entera.com> <19990902023313.B57569@beastie.localdomain> From: Dave Liebreich In-Reply-To: "Brian O'Shea"'s message of "Thu, 2 Sep 1999 02:33:13 -0700" User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 02 Sep 1999 02:34:10 -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org $ g++ ot.cpp ot.cpp: In function `int readStuff()': ot.cpp:331: warning: variable `i' shadows local ot.cpp:199: warning: this is the shadowed declaration $ Thanks for taking the time to look at this. -Dave "Brian O'Shea" writes: > Maybe I'm losing it here, but did you actually get this to compile? > I started making modifications to get through the compiler errors, but > there's just too much wrong here. I'd love to see the compiler that > this successfully built on. > > For instance, this just isn't valid C syntax: > > 74 int fd(socket(AF_INET, SOCK_STREAM, 0)); > 75 if (fd < 0) > 76 { > 77 perror("socket.2"); > 78 return 1; > 79 } > > Where is 'fd' declared? Is it an integer or a function? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message