Date: Thu, 02 Sep 1999 02:34:10 -0700 From: Dave Liebreich <davel@entera.com> To: freebsd-net@freebsd.org Subject: Re: TCP socket performance? Message-ID: <199909020934.CAA11269@warhawk.entera.com> In-Reply-To: "Brian O'Shea"'s message of "Thu, 2 Sep 1999 02:33:13 -0700" References: <199909020149.SAA02570@warhawk.entera.com> <19990902023313.B57569@beastie.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
$ 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" <boshea@ricochet.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909020934.CAA11269>