xref: /freebsd/contrib/sendmail/libmilter/docs/smfi_setbacklog.html (revision 5ef517c097100c80269c8a0e02678a89fde6b35e)
1605302a5SGregory Neil Shapiro<html>
2605302a5SGregory Neil Shapiro<head><title>smfi_setbacklog</title></head>
3605302a5SGregory Neil Shapiro<body>
4605302a5SGregory Neil Shapiro<h1>smfi_setbacklog</h1>
5605302a5SGregory Neil Shapiro
6605302a5SGregory Neil Shapiro<table border="0" cellspacing=4 cellpadding=4>
7605302a5SGregory Neil Shapiro<!---------- Synopsis ----------->
8605302a5SGregory Neil Shapiro<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
9605302a5SGregory Neil Shapiro<pre>
10605302a5SGregory Neil Shapiro#include &lt;libmilter/mfapi.h&gt;
11605302a5SGregory Neil Shapiroint smfi_setbacklog(
12605302a5SGregory Neil Shapiro	int obacklog
13605302a5SGregory Neil Shapiro);
14605302a5SGregory Neil Shapiro</pre>
15605302a5SGregory Neil ShapiroSet the filter's listen backlog value.
16605302a5SGregory Neil Shapiro</td></tr>
17605302a5SGregory Neil Shapiro
18605302a5SGregory Neil Shapiro<!----------- Description ---------->
19605302a5SGregory Neil Shapiro<tr><th valign="top" align=left>DESCRIPTION</th><td>
20605302a5SGregory Neil Shapiro<table border="1" cellspacing=1 cellpadding=4>
21605302a5SGregory Neil Shapiro<tr align="left" valign=top>
22605302a5SGregory Neil Shapiro<th width="80">Called When</th>
23605302a5SGregory Neil Shapiro<td>smfi_setbacklog should only be called before <a href="smfi_main.html">smfi_main</a>.</td>
24605302a5SGregory Neil Shapiro</tr>
25605302a5SGregory Neil Shapiro<tr align="left" valign=top>
26605302a5SGregory Neil Shapiro<th width="80">Effects</th>
27605302a5SGregory Neil Shapiro<td>Sets the incoming socket backlog used by listen().  If smfi_setbacklog is not called, the operating system default is used.</td>
28605302a5SGregory Neil Shapiro</tr>
29605302a5SGregory Neil Shapiro</table>
30605302a5SGregory Neil Shapiro
31605302a5SGregory Neil Shapiro<!----------- Arguments ---------->
32605302a5SGregory Neil Shapiro<tr><th valign="top" align=left>ARGUMENTS</th><td>
33605302a5SGregory Neil Shapiro    <table border="1" cellspacing=0>
34605302a5SGregory Neil Shapiro    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
35605302a5SGregory Neil Shapiro    <tr valign="top"><td>obacklog</td>
36605302a5SGregory Neil Shapiro	<td>The number of incoming connections to allow in the listen queue.
37605302a5SGregory Neil Shapiro	</td></tr>
38605302a5SGregory Neil Shapiro    </table>
39605302a5SGregory Neil Shapiro</td></tr>
40605302a5SGregory Neil Shapiro
41605302a5SGregory Neil Shapiro<!----------- Return values ---------->
42605302a5SGregory Neil Shapiro<tr>
43605302a5SGregory Neil Shapiro<th valign="top" align=left>RETURN VALUES</th>
44605302a5SGregory Neil Shapiro
45605302a5SGregory Neil Shapiro<td>smfi_setbacklog returns MI_FAILURE if obacklog is less than or equal
46605302a5SGregory Neil Shapiroto zero.</td>
47605302a5SGregory Neil Shapiro</tr>
48605302a5SGregory Neil Shapiro
49605302a5SGregory Neil Shapiro</table>
50605302a5SGregory Neil Shapiro
51605302a5SGregory Neil Shapiro<hr size="1">
52605302a5SGregory Neil Shapiro<font size="-1">
535ef517c0SGregory Neil ShapiroCopyright (c) 2002-2003 Sendmail, Inc. and its suppliers.
54605302a5SGregory Neil ShapiroAll rights reserved.
55605302a5SGregory Neil Shapiro<br>
56605302a5SGregory Neil ShapiroBy using this file, you agree to the terms and conditions set
575ef517c0SGregory Neil Shapiroforth in the LICENSE.
58605302a5SGregory Neil Shapiro</font>
59605302a5SGregory Neil Shapiro</body>
60605302a5SGregory Neil Shapiro</html>
61