usedir.c sample program

NoteYou cannot use this sample program because Mac OS X does not support LDAP on Mac OS X.

The usedir.c sample program demonstrates Client-Library’s ability to query a directory service for a list of available servers.

usedir.c searches for Sybase server entries in the default directory, as defined in the driver configuration file. If a network directory service is not being used, usedir.c queries the interfaces file for server entries. Then, it displays a description of each entry found, and lets the user choose a server to connect to.

For more information about this program, see the leading comments in the example source file. For more information about network directory services, refer to the Open Client and Open Server Configuration Guide for UNIX.