int smfi_opensocket( bool rmsocket );
Attempt to create the interface socket MTAs will use to connect to the filter.
|Called When||Called only from program mainline, before calling smfi_main().|
|Effects||smfi_opensocket attempts to create the socket specified
previously by a call to
|rmsocket||A flag indicating whether or not the library should try to remove any existing UNIX domain socket before trying to create a new one.|
smfi_opensocket will fail and return MI_FAILURE if:
- The interface socket could not be created for any reason.
- rmsocket was true, and either the socket could not be examined, or exists and could not be removed.
- smfi_setconn() has not been called.
Otherwise, it will return MI_SUCCESS