Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2011 21:59:48 +0200
From:      Bernard van Gastel <bvgastel@bitpowder.com>
To:        hackers@freebsd.org
Subject:   eliminating a syscall on accept()+ioctl() combo
Message-ID:  <E27242EA-A2DD-4CB8-92B6-8B95B3BF3B8E@bitpowder.com>

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

--Apple-Mail=_195B80BE-B7A7-412D-BE16-7032DBFD4732
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi all,

I want to reduce the number of syscalls for my networking application. =
The app handles incoming connections with the 'accept()' system call. Is =
there a way to specify to accept() that the newly created file =
descriptors should be non-blocking (FIONBIO)? This will avoid an ioctl() =
after the accept(). Thanks!

With regards,
  Bernard=

--Apple-Mail=_195B80BE-B7A7-412D-BE16-7032DBFD4732--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E27242EA-A2DD-4CB8-92B6-8B95B3BF3B8E>