Sendmail 8.13.3 Programmer's Guide

Milter APIs
Library Control APIs
Chapter 216
#include <libmilter/mfapi.h>
int smfi_opensocket(
bool rmsocket
);
Arguments
You must call smfi_opensocket() with the following argument
smfi_opensocket Specifies the flag that indicates whether the library
must try to remove any existing UNIX domain
socket before trying to create a new one.
Return Value
smfi_opensocket() fails and returns MI_FAILURE because of the
following reasons:
The interface socket is not created.
rmsocket is true and either the socket is not examined or exists, and
is not removed.
smfi_setconn() is not called.
smfi_opensocket() returns MI_SUCCESS on success.
The smfi_setdbg() API
You can use smfi_setdbg() to set the internal debugging or tracing level
of the milter library to a new level to track the code details. You can use
the smfi_setdbg() API to set the debugging or tracing level for the
milter library. A level of 0 (zero) turns off debugging. If you increase the
debugging level (more positive number), the details included in
debugging also increases. A debugging value of 6 is the current, highest
and useful debugging value.
The declaration of smfi_setdbg() is as follows:
#include <libmilter/mfapi.h>
int smfi_setdbg(
int level;
);
Argument
You must call smfi_setdbg() with the argument level, which specifies
a new debugging level.
Return Value