xref: /freebsd/contrib/sendmail/libmilter/docs/smfi_setbacklog.html (revision e92d3f3ffe83a6ed7eaafac70da9cf4fafe13243)
1605302a5SGregory Neil Shapiro<html>
2605302a5SGregory Neil Shapiro<head><title>smfi_setbacklog</title></head>
3605302a5SGregory Neil Shapiro<body>
4e92d3f3fSGregory Neil Shapiro<!--
5e92d3f3fSGregory Neil Shapiro$Id: smfi_setbacklog.html,v 1.3 2003/03/05 19:57:54 ca Exp $
6e92d3f3fSGregory Neil Shapiro-->
7605302a5SGregory Neil Shapiro<h1>smfi_setbacklog</h1>
8605302a5SGregory Neil Shapiro
9605302a5SGregory Neil Shapiro<table border="0" cellspacing=4 cellpadding=4>
10605302a5SGregory Neil Shapiro<!---------- Synopsis ----------->
11605302a5SGregory Neil Shapiro<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
12605302a5SGregory 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);
17605302a5SGregory Neil Shapiro</pre>
18605302a5SGregory Neil ShapiroSet the filter's listen backlog value.
19605302a5SGregory Neil Shapiro</td></tr>
20605302a5SGregory Neil Shapiro
21605302a5SGregory Neil Shapiro<!----------- Description ---------->
22605302a5SGregory Neil Shapiro<tr><th valign="top" align=left>DESCRIPTION</th><td>
23605302a5SGregory Neil Shapiro<table border="1" cellspacing=1 cellpadding=4>
24605302a5SGregory Neil Shapiro<tr align="left" valign=top>
25605302a5SGregory Neil Shapiro<th width="80">Called When</th>
26605302a5SGregory Neil Shapiro<td>smfi_setbacklog should only be called before <a href="smfi_main.html">smfi_main</a>.</td>
27605302a5SGregory Neil Shapiro</tr>
28605302a5SGregory Neil Shapiro<tr align="left" valign=top>
29605302a5SGregory Neil Shapiro<th width="80">Effects</th>
30605302a5SGregory Neil Shapiro<td>Sets the incoming socket backlog used by listen().  If smfi_setbacklog is not called, the operating system default is used.</td>
31605302a5SGregory Neil Shapiro</tr>
32605302a5SGregory Neil Shapiro</table>
33605302a5SGregory Neil Shapiro
34605302a5SGregory Neil Shapiro<!----------- Arguments ---------->
35605302a5SGregory Neil Shapiro<tr><th valign="top" align=left>ARGUMENTS</th><td>
36605302a5SGregory Neil Shapiro    <table border="1" cellspacing=0>
37605302a5SGregory Neil Shapiro    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
38605302a5SGregory Neil Shapiro    <tr valign="top"><td>obacklog</td>
39605302a5SGregory Neil Shapiro	<td>The number of incoming connections to allow in the listen queue.
40605302a5SGregory Neil Shapiro	</td></tr>
41605302a5SGregory Neil Shapiro    </table>
42605302a5SGregory Neil Shapiro</td></tr>
43605302a5SGregory Neil Shapiro
44605302a5SGregory Neil Shapiro<!----------- Return values ---------->
45605302a5SGregory Neil Shapiro<tr>
46605302a5SGregory Neil Shapiro<th valign="top" align=left>RETURN VALUES</th>
47605302a5SGregory Neil Shapiro
48605302a5SGregory Neil Shapiro<td>smfi_setbacklog returns MI_FAILURE if obacklog is less than or equal
49605302a5SGregory Neil Shapiroto zero.</td>
50605302a5SGregory Neil Shapiro</tr>
51605302a5SGregory Neil Shapiro
52605302a5SGregory Neil Shapiro</table>
53605302a5SGregory Neil Shapiro
54605302a5SGregory Neil Shapiro<hr size="1">
55605302a5SGregory Neil Shapiro<font size="-1">
565ef517c0SGregory Neil ShapiroCopyright (c) 2002-2003 Sendmail, Inc. and its suppliers.
57605302a5SGregory Neil ShapiroAll rights reserved.
58605302a5SGregory Neil Shapiro<br>
59605302a5SGregory Neil ShapiroBy using this file, you agree to the terms and conditions set
605ef517c0SGregory Neil Shapiroforth in the LICENSE.
61605302a5SGregory Neil Shapiro</font>
62605302a5SGregory Neil Shapiro</body>
63605302a5SGregory Neil Shapiro</html>
64