z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


smfi_setconn

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

#include <libmilter/mfapi.h>
int smfi_setconn(
	     char *oconn;
);

smfi_setconn description

The smfi_setconn API sets the socket through which the filter communicates with sendmail. The smfi_setconn API must be called once before smfi_main.

smfi_setconn parameters

oconn
The address of the desired communication socket. The address should be a NULL-terminated string in proto:address format as follows:
  • {unix|local}:/path/to/file - A named pipe
  • inet:port@{hostname|ip-address} - An IPv4 socket
  • inet6:port@{hostname|ip-address} - An IPv6 socket

smfi_setconn result

smfi_setconn does not fail on an address that is not valid. A failure is detected only in smfi_main.

Notes:
  1. If possible, filters should not run as root when communicating over UNIX/local domain sockets.
  2. UNIX/local sockets should have their permissions set to 0600 (read/write permission only for the socket's owner).

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014