1168515Sgshapiro<HTML>
2168515Sgshapiro<HEAD><TITLE>smfi_main</TITLE></HEAD>
3168515Sgshapiro<BODY>
4132943Sgshapiro<!--
5168515Sgshapiro$Id: smfi_main.html,v 1.9 2006/12/21 18:30:35 ca Exp $
6132943Sgshapiro-->
7168515Sgshapiro<H1>smfi_main</H1>
890792Sgshapiro
9168515Sgshapiro<TABLE border="0" cellspacing=4 cellpadding=4>
1090792Sgshapiro<!---------- Synopsis ----------->
11168515Sgshapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
12168515Sgshapiro<PRE>
1390792Sgshapiro#include &lt;libmilter/mfapi.h&gt;
1490792Sgshapiroint smfi_main(
1590792Sgshapiro);
16168515Sgshapiro</PRE>
1790792SgshapiroHand control to libmilter event loop.
18168515Sgshapiro</TD></TR>
1990792Sgshapiro
2090792Sgshapiro<!----------- Description ---------->
21168515Sgshapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
22168515Sgshapiro<TABLE border="1" cellspacing=1 cellpadding=4>
23168515Sgshapiro<TR align="left" valign=top>
24168515Sgshapiro<TH width="80">Called When</TH>
25168515Sgshapiro<TD>smfi_main is called after a filter's initialization is complete.</TD>
26168515Sgshapiro</TR>
27168515Sgshapiro<TR align="left" valign=top>
28168515Sgshapiro<TH width="80">Effects</TH>
29168515Sgshapiro<TD>smfi_main hands control to the Milter event loop.</TD>
30168515Sgshapiro</TR>
31168515Sgshapiro</TABLE>
3290792Sgshapiro
3390792Sgshapiro<!----------- Return values ---------->
34168515Sgshapiro<TR>
35168515Sgshapiro<TH valign="top" align=left>RETURN VALUES</TH> 
3690792Sgshapiro
37168515Sgshapiro<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>
38168515Sgshapiro</TR>
3990792Sgshapiro
40168515Sgshapiro</TABLE>
4190792Sgshapiro
42168515Sgshapiro<HR size="1">
43168515Sgshapiro<FONT size="-1">
44112810SgshapiroCopyright (c) 2000, 2003 Sendmail, Inc. and its suppliers.
4590792SgshapiroAll rights reserved.
46168515Sgshapiro<BR>
4790792SgshapiroBy using this file, you agree to the terms and conditions set
48112810Sgshapiroforth in the LICENSE.
49168515Sgshapiro</FONT>
50168515Sgshapiro</BODY>
51168515Sgshapiro</HTML>
52