xref: /freebsd/contrib/sendmail/libmilter/docs/smfi_setbacklog.html (revision e2c0e292e8a7ca00ba99bcfccc9e637f45c3e8b1)
1d0cef73dSGregory Neil Shapiro<HTML>
2d0cef73dSGregory Neil Shapiro<HEAD><TITLE>smfi_setbacklog</TITLE></HEAD>
3d0cef73dSGregory Neil Shapiro<BODY>
4e92d3f3fSGregory Neil Shapiro<!--
54313cc83SGregory Neil Shapiro$Id: smfi_setbacklog.html,v 1.7 2013-11-22 20:51:39 ca Exp $
6e92d3f3fSGregory Neil Shapiro-->
7d0cef73dSGregory Neil Shapiro<H1>smfi_setbacklog</H1>
8605302a5SGregory Neil Shapiro
9d0cef73dSGregory Neil Shapiro<TABLE border="0" cellspacing=4 cellpadding=4>
10605302a5SGregory Neil Shapiro<!---------- Synopsis ----------->
11d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
12d0cef73dSGregory Neil Shapiro<PRE>
13605302a5SGregory Neil Shapiro#include &lt;libmilter/mfapi.h&gt;
14605302a5SGregory Neil Shapiroint smfi_setbacklog(
15605302a5SGregory Neil Shapiro	int obacklog
16605302a5SGregory Neil Shapiro);
17d0cef73dSGregory Neil Shapiro</PRE>
18d0cef73dSGregory Neil ShapiroSet the filter's <CODE>listen(2)</CODE> backlog value.
19d0cef73dSGregory Neil Shapiro</TD></TR>
20605302a5SGregory Neil Shapiro
21605302a5SGregory Neil Shapiro<!----------- Description ---------->
22d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
23d0cef73dSGregory Neil Shapiro<TABLE border="1" cellspacing=1 cellpadding=4>
24d0cef73dSGregory Neil Shapiro<TR align="left" valign=top>
25d0cef73dSGregory Neil Shapiro<TH width="80">Called When</TH>
26d0cef73dSGregory Neil Shapiro<TD>smfi_setbacklog should only be called before <A href="smfi_main.html">smfi_main</A>.</TD>
27d0cef73dSGregory Neil Shapiro</TR>
28d0cef73dSGregory Neil Shapiro<TR align="left" valign=top>
29d0cef73dSGregory Neil Shapiro<TH width="80">Effects</TH>
30d0cef73dSGregory Neil Shapiro<TD>Sets the incoming socket backlog used by <CODE>listen(2)</CODE>.
31d0cef73dSGregory Neil ShapiroIf smfi_setbacklog is not called, the operating system default is used.</TD>
32d0cef73dSGregory Neil Shapiro</TR>
33d0cef73dSGregory Neil Shapiro</TABLE>
34*5b0945b5SGregory Neil Shapiro</TD></TR>
35605302a5SGregory Neil Shapiro
36605302a5SGregory Neil Shapiro<!----------- Arguments ---------->
37d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
38d0cef73dSGregory Neil Shapiro    <TABLE border="1" cellspacing=0>
39d0cef73dSGregory Neil Shapiro    <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
40d0cef73dSGregory Neil Shapiro    <TR valign="top"><TD>obacklog</TD>
41d0cef73dSGregory Neil Shapiro	<TD>The number of incoming connections to allow in the listen queue.
42d0cef73dSGregory Neil Shapiro	</TD></TR>
43d0cef73dSGregory Neil Shapiro    </TABLE>
44d0cef73dSGregory Neil Shapiro</TD></TR>
45605302a5SGregory Neil Shapiro
46605302a5SGregory Neil Shapiro<!----------- Return values ---------->
47d0cef73dSGregory Neil Shapiro<TR>
48d0cef73dSGregory Neil Shapiro<TH valign="top" align=left>RETURN VALUES</TH>
49605302a5SGregory Neil Shapiro
50d0cef73dSGregory Neil Shapiro<TD>smfi_setbacklog returns MI_FAILURE if obacklog is less than or equal
51d0cef73dSGregory Neil Shapiroto zero.</TD>
52d0cef73dSGregory Neil Shapiro</TR>
53605302a5SGregory Neil Shapiro
54d0cef73dSGregory Neil Shapiro</TABLE>
55605302a5SGregory Neil Shapiro
56d0cef73dSGregory Neil Shapiro<HR size="1">
57d0cef73dSGregory Neil Shapiro<FONT size="-1">
585dd76dd0SGregory Neil ShapiroCopyright (c) 2002-2003 Proofpoint, Inc. and its suppliers.
59605302a5SGregory Neil ShapiroAll rights reserved.
60d0cef73dSGregory Neil Shapiro<BR>
61605302a5SGregory Neil ShapiroBy using this file, you agree to the terms and conditions set
625ef517c0SGregory Neil Shapiroforth in the LICENSE.
63d0cef73dSGregory Neil Shapiro</FONT>
64d0cef73dSGregory Neil Shapiro</BODY>
65d0cef73dSGregory Neil Shapiro</HTML>
66