1168515Sgshapiro<HTML> 2168515Sgshapiro<HEAD><TITLE>smfi_setbacklog</TITLE></HEAD> 3168515Sgshapiro<BODY> 4132943Sgshapiro<!-- 5266692Sgshapiro$Id: smfi_setbacklog.html,v 1.7 2013-11-22 20:51:39 ca Exp $ 6132943Sgshapiro--> 7168515Sgshapiro<H1>smfi_setbacklog</H1> 894334Sgshapiro 9168515Sgshapiro<TABLE border="0" cellspacing=4 cellpadding=4> 1094334Sgshapiro<!---------- Synopsis -----------> 11168515Sgshapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD> 12168515Sgshapiro<PRE> 1394334Sgshapiro#include <libmilter/mfapi.h> 1494334Sgshapiroint smfi_setbacklog( 1594334Sgshapiro int obacklog 1694334Sgshapiro); 17168515Sgshapiro</PRE> 18168515SgshapiroSet the filter's <CODE>listen(2)</CODE> backlog value. 19168515Sgshapiro</TD></TR> 2094334Sgshapiro 2194334Sgshapiro<!----------- Description ----------> 22168515Sgshapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD> 23168515Sgshapiro<TABLE border="1" cellspacing=1 cellpadding=4> 24168515Sgshapiro<TR align="left" valign=top> 25168515Sgshapiro<TH width="80">Called When</TH> 26168515Sgshapiro<TD>smfi_setbacklog should only be called before <A href="smfi_main.html">smfi_main</A>.</TD> 27168515Sgshapiro</TR> 28168515Sgshapiro<TR align="left" valign=top> 29168515Sgshapiro<TH width="80">Effects</TH> 30168515Sgshapiro<TD>Sets the incoming socket backlog used by <CODE>listen(2)</CODE>. 31168515SgshapiroIf smfi_setbacklog is not called, the operating system default is used.</TD> 32168515Sgshapiro</TR> 33168515Sgshapiro</TABLE> 3494334Sgshapiro 3594334Sgshapiro<!----------- Arguments ----------> 36168515Sgshapiro<TR><TH valign="top" align=left>ARGUMENTS</TH><TD> 37168515Sgshapiro <TABLE border="1" cellspacing=0> 38168515Sgshapiro <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR> 39168515Sgshapiro <TR valign="top"><TD>obacklog</TD> 40168515Sgshapiro <TD>The number of incoming connections to allow in the listen queue. 41168515Sgshapiro </TD></TR> 42168515Sgshapiro </TABLE> 43168515Sgshapiro</TD></TR> 4494334Sgshapiro 4594334Sgshapiro<!----------- Return values ----------> 46168515Sgshapiro<TR> 47168515Sgshapiro<TH valign="top" align=left>RETURN VALUES</TH> 4894334Sgshapiro 49168515Sgshapiro<TD>smfi_setbacklog returns MI_FAILURE if obacklog is less than or equal 50168515Sgshapiroto zero.</TD> 51168515Sgshapiro</TR> 5294334Sgshapiro 53168515Sgshapiro</TABLE> 5494334Sgshapiro 55168515Sgshapiro<HR size="1"> 56168515Sgshapiro<FONT size="-1"> 57261363SgshapiroCopyright (c) 2002-2003 Proofpoint, Inc. and its suppliers. 5894334SgshapiroAll rights reserved. 59168515Sgshapiro<BR> 6094334SgshapiroBy using this file, you agree to the terms and conditions set 61112810Sgshapiroforth in the LICENSE. 62168515Sgshapiro</FONT> 63168515Sgshapiro</BODY> 64168515Sgshapiro</HTML> 65