eliminating a syscall on accept()+ioctl() combo
Bernard van Gastel
bvgastel at bitpowder.com
Mon Aug 1 04:34:26 UTC 2011
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
More information about the freebsd-hackers
mailing list