From owner-freebsd-current Sun Aug 2 17:51:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA05201 for freebsd-current-outgoing; Sun, 2 Aug 1998 17:51:16 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA05196 for ; Sun, 2 Aug 1998 17:51:14 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.8.8/8.8.8) id UAA21748; Sun, 2 Aug 1998 20:51:04 -0400 (EDT) (envelope-from wollman) Date: Sun, 2 Aug 1998 20:51:04 -0400 (EDT) From: Garrett Wollman Message-Id: <199808030051.UAA21748@khavrinen.lcs.mit.edu> To: Alex Cc: current Subject: listen() and SOMAXCONN? In-Reply-To: References: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > defined in sys/socket.h. A quick check of the man page informs me that I > should use the MIB kern.somaxconn. Well, I checked the header files, and > SOMAXCONN is defined to 128 in sys/socket.h, and there is no > kern.somaxconn MIB. Any thoughts? Under FreeBSD, you should use -1. The MIB variable is in the kern.ipc subtree. For portability, you should be prepared to use SOMAXCONN on other systems. (It's easy to imagine an autoconf test which would determine whether -1 works or not, or you could just do it at run time.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message