smfi_setbacklog Function

Purpose

The smfi_setbacklog function sets the listen(2) backlog value of the filter.

Syntax

#include <libmilter/mfapi.h>
int smfi_setbacklog(
int obacklog
);

Description

The smfi_setbacklog function is called only before calling the smfi_main function. The smfi_setbacklog function sets the incoming socket backlog, which is used by the listen(2) backlog value. If the smfi_setbacklog function is not called, the default operating system is used.

Arguments

Table 1. Arguments
Item Description
obacklog The number of incoming connections allowed in the listen queue.

Return values

The smfi_setbacklog function returns MI_FAILURE value if the obacklog argument is set to less than or equal to null.

Related information

libmilter_smfi_main.html