Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Sep 1999 14:02:30 +0400 (MSD)
From:      Dmitry Samersoff <dms@wplus.net>
To:        "Brian O'Shea" <boshea@ricochet.net>
Cc:        freebsd-net@FreeBSD.ORG, Dave Liebreich <davel@entera.com>
Subject:   Re: TCP socket performance?
Message-ID:  <XFMail.990902140230.dms@wplus.net>
In-Reply-To: <19990902023313.B57569@beastie.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help

On 02-Sep-99 Brian O'Shea wrote:
> 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?

It's probably C++, g++ compile it whithout problems.
But  I see no freeze on FreeBSD 2.2.8 - just lots of
messages like this:

read.read.block: Interrupted system call
frump is 1440


---
Dmitry Samersoff, dms@wplus.net, ICQ:3161705
http://devnull.wplus.net
* There will come soft rains ...


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?XFMail.990902140230.dms>