Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 17 Data Types and Structures

ldap_io_fns

The ldap_io_fns structure contains a set of pointers to input/output functions that you want used with the Directory Server API. You need to set up this structure if you want to connect to the LDAP server using a secure sockets layer (SSL).

The ldap_io_fns structure is defined as follows:

struct ldap_io_fns {
   LDAP_IOF_READ_CALLBACK *liof_read;
   LDAP_IOF_WRITE_CALLBACK *liof_write;
   LDAP_IOF_SELECT_CALLBACK *liof_select;
   LDAP_IOF_SOCKET_CALLBACK *liof_socket;
   LDAP_IOF_IOCTL_CALLBACK *liof_ioctl;
   LDAP_IOF_CONNECT_CALLBACK *liof_connect;
   LDAP_IOF_CLOSE_CALLBACK *liof_close;
   LDAP_IOF_SSL_ENABLE_CALLBACK *liof_ssl_enable;
};
The fields in this structure are described below:

liof_read

Function pointer to the equivalent of the standard read() I/O function. The function must have the prototype specified by LDAP_IOF_READ_CALLBACK.

liof_write

Function pointer to the equivalent of the standard write() I/O function. The function must have the prototype specified by LDAP_IOF_WRITE_CALLBACK.

liof_select

Function pointer to the equivalent of the standard select() I/O function. The function must have the prototype specified by LDAP_IOF_SELECT_CALLBACK.

liof_socket

Function pointer to the equivalent of the standard socket() network I/O function. The function must have the prototype specified by LDAP_IOF_SOCKET_CALLBACK.

liof_ioctl

Function pointer to the equivalent of the standard ioctl() system call. The function must have the prototype specified by LDAP_IOF_IOCTL_CALLBACK.

liof_connect

Function pointer to the equivalent of the standard connect() network I/O function. The function must have the prototype specified by LDAP_IOF_CONNECT_CALLBACK.

liof_close

Function pointer to the equivalent of the standard close() system call. The function must have the prototype specified by LDAP_IOF_CLOSE_CALLBACK.

liof_ssl_enable

Function pointer to the equivalent of the ssl_enable() function. The function must have the prototype specified by LDAP_IOF_SSL_ENABLE_CALLBACK.


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:05:28