1168515Sgshapiro<HTML>
2168515Sgshapiro<HEAD><TITLE>smfi_stop</TITLE></HEAD>
3168515Sgshapiro<BODY>
4132943Sgshapiro<!--
5266527Sgshapiro$Id: smfi_stop.html,v 1.8 2013-11-22 20:51:39 ca Exp $
6132943Sgshapiro-->
7168515Sgshapiro<H1>smfi_stop</H1>
8132943Sgshapiro
9168515Sgshapiro<TABLE border="0" cellspacing=4 cellpadding=4>
10132943Sgshapiro<!---------- Synopsis ----------->
11168515Sgshapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
12168515Sgshapiro<PRE>
13132943Sgshapiro#include &lt;libmilter/mfapi.h&gt;
14132943Sgshapiroint smfi_stop(void);
15168515Sgshapiro</PRE>
16157001SgshapiroShutdown the milter.
17157001SgshapiroNo connections will be accepted after this call.
18168515Sgshapiro</TD></TR>
19132943Sgshapiro
20132943Sgshapiro<!----------- 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>Called from any of the <A href="api.html#Callbacks">Callback</A> routines
26168515Sgshapiroor any error-handling routines at any time.</TD>
27168515Sgshapiro</TR>
28168515Sgshapiro<TR align="left" valign=top>
29168515Sgshapiro<TH width="80">Effects</TH>
30168515Sgshapiro<TD>The smfi_stop routine prevents that new connections
31157001Sgshapirowill be accepted,
32157001Sgshapirohowever, it does not wait for existing connections (threads) to terminate.
33157001SgshapiroIt will cause
34168515Sgshapiro<A href="smfi_main.html">smfi_main</A> to return to the calling program,
35132943Sgshapirowhich may then exit or warm-restart.
36168515Sgshapiro</TD>
37168515Sgshapiro</TR>
38168515Sgshapiro</TABLE>
39132943Sgshapiro
40132943Sgshapiro<!----------- Arguments ---------->
41168515Sgshapiro<TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
42168515Sgshapiro    <TABLE border="1" cellspacing=0>
43168515Sgshapiro    <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
44168515Sgshapiro    <TR valign="top"><TD>void</TD>
45223067Sgshapiro	<TD>Takes no argument.
46168515Sgshapiro	</TD></TR>
47168515Sgshapiro    </TABLE>
48168515Sgshapiro</TD></TR>
49132943Sgshapiro
50132943Sgshapiro<!----------- Return values ---------->
51168515Sgshapiro<TR>
52168515Sgshapiro<TH valign="top" align=left>RETURN VALUES</TH> 
53132943Sgshapiro
54168515Sgshapiro<TD>smfi_stop always returns SMFI_CONTINUE. But note:
55168515Sgshapiro<UL>
56168515Sgshapiro    <LI>Another internal routine may already have asked the milter to abort.
57168515Sgshapiro    <LI>Another routine may already have asked the milter to stop.
58168515Sgshapiro    <LI>There is no way to cancel the stop process once it has begun.
59168515Sgshapiro</UL>
60168515Sgshapiro</TD>
61168515Sgshapiro</TR>
62132943Sgshapiro
63168515Sgshapiro</TABLE>
64132943Sgshapiro
65168515Sgshapiro<HR size="1">
66168515Sgshapiro<FONT size="-1">
67261194SgshapiroCopyright (c) 2003, 2005 Proofpoint, Inc. and its suppliers.
68132943SgshapiroAll rights reserved.
69168515Sgshapiro<BR>
70132943SgshapiroBy using this file, you agree to the terms and conditions set
71132943Sgshapiroforth in the LICENSE.
72168515Sgshapiro</FONT>
73168515Sgshapiro</BODY>
74168515Sgshapiro</HTML>
75