1d0cef73dSGregory Neil Shapiro<HTML> 2d0cef73dSGregory Neil Shapiro<HEAD><TITLE>smfi_main</TITLE></HEAD> 3d0cef73dSGregory Neil Shapiro<BODY> 4e92d3f3fSGregory Neil Shapiro<!-- 5d0cef73dSGregory Neil Shapiro$Id: smfi_main.html,v 1.9 2006/12/21 18:30:35 ca Exp $ 6e92d3f3fSGregory Neil Shapiro--> 7d0cef73dSGregory Neil Shapiro<H1>smfi_main</H1> 840266059SGregory Neil Shapiro 9d0cef73dSGregory Neil Shapiro<TABLE border="0" cellspacing=4 cellpadding=4> 1040266059SGregory Neil Shapiro<!---------- Synopsis -----------> 11d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD> 12d0cef73dSGregory Neil Shapiro<PRE> 1340266059SGregory Neil Shapiro#include <libmilter/mfapi.h> 1440266059SGregory Neil Shapiroint smfi_main( 1540266059SGregory Neil Shapiro); 16d0cef73dSGregory Neil Shapiro</PRE> 1740266059SGregory Neil ShapiroHand control to libmilter event loop. 18d0cef73dSGregory Neil Shapiro</TD></TR> 1940266059SGregory Neil Shapiro 2040266059SGregory Neil Shapiro<!----------- Description ----------> 21d0cef73dSGregory Neil Shapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD> 22d0cef73dSGregory Neil Shapiro<TABLE border="1" cellspacing=1 cellpadding=4> 23d0cef73dSGregory Neil Shapiro<TR align="left" valign=top> 24d0cef73dSGregory Neil Shapiro<TH width="80">Called When</TH> 25d0cef73dSGregory Neil Shapiro<TD>smfi_main is called after a filter's initialization is complete.</TD> 26d0cef73dSGregory Neil Shapiro</TR> 27d0cef73dSGregory Neil Shapiro<TR align="left" valign=top> 28d0cef73dSGregory Neil Shapiro<TH width="80">Effects</TH> 29d0cef73dSGregory Neil Shapiro<TD>smfi_main hands control to the Milter event loop.</TD> 30d0cef73dSGregory Neil Shapiro</TR> 31d0cef73dSGregory Neil Shapiro</TABLE> 3240266059SGregory Neil Shapiro 3340266059SGregory Neil Shapiro<!----------- Return values ----------> 34d0cef73dSGregory Neil Shapiro<TR> 35d0cef73dSGregory Neil Shapiro<TH valign="top" align=left>RETURN VALUES</TH> 3640266059SGregory Neil Shapiro 37d0cef73dSGregory Neil Shapiro<TD>smfi_main will return MI_FAILURE if it fails to establish a connection. This may occur for any of a variety of reasons (e.g. invalid address passed to <A href="smfi_setconn.html">smfi_setconn</A>). The reason for the failure will be logged. Otherwise, smfi_main will return MI_SUCCESS.</TD> 38d0cef73dSGregory Neil Shapiro</TR> 3940266059SGregory Neil Shapiro 40d0cef73dSGregory Neil Shapiro</TABLE> 4140266059SGregory Neil Shapiro 42d0cef73dSGregory Neil Shapiro<HR size="1"> 43d0cef73dSGregory Neil Shapiro<FONT size="-1"> 445ef517c0SGregory Neil ShapiroCopyright (c) 2000, 2003 Sendmail, Inc. and its suppliers. 4540266059SGregory Neil ShapiroAll rights reserved. 46d0cef73dSGregory Neil Shapiro<BR> 4740266059SGregory Neil ShapiroBy using this file, you agree to the terms and conditions set 485ef517c0SGregory Neil Shapiroforth in the LICENSE. 49d0cef73dSGregory Neil Shapiro</FONT> 50d0cef73dSGregory Neil Shapiro</BODY> 51d0cef73dSGregory Neil Shapiro</HTML> 52