/* ***************************************************************************+
 * ITX package (cnrg.itx) for telephony application programming.              *
 * Copyright (c) 1999  Cornell University, Ithaca NY.                         *
 * A copy of the license is distributed with this package.  Look in the docs  *
 * directory, filename GPL.  Contact information: bergmark@cs.cornell.edu     *
 ******************************************************************************/
This directory contains source code for building DSComm.dll on Windows platform used by the DirectoryService.

NOTE:  To build DSComm.dll, it requires to build resolv.lib (in bind\res) and lib44bsd.lib (in bind\compat\lib).


Information on Modification to BIND 4.9.7 source code
-----------------------------------------------------
All modifications can be located by searching the CNRG\ITX keyword.

1. For resolv project (in bind\res):

- In bind\res\res_send.c, comment out the 2 if statements to check FD_SETSIZE
- In bind\res\res_nt_misc.c, add init_res_paths_by_filename function
- In bind\include\resolv.h, export init_res_paths_by_filename function
- In bind\include\arpa\nameser.h, redefine PACKETSZ

2. For DSComm project (in bind\DSComm):

- In bind\include\arpa\nameser.h, adds #define/struct/typedef statements 
- In bind\compat\include\sys\bitypes.h, adds conditional typedef statement
- To generate cnrg_itx_ds_DSComm.h (from DSComm.class) on Windows platform, use javah -jni command.


Information on Project->Settings
-------------------------------
1. For lib44bsd project:

-Under C/C++ tab->Preprocessor definitions, add:
WIN95


2. For DSComm project:

-Under Link tab->Object/library modules, add the following lib files:
resolv.lib lib44bsd.lib ws2_32.lib

-Under Link tab->Additional lib path, add:
comma separated path to locate resolv.lib (..\res\WinDebug OR ..\res\WinRel), and lib44bsd.lib (..\compat\lib\WinDebug OR ..\compat\lib\WinRel)

NOTE: ws2_32.lib path should be included as default in Tools->Options->Directories->library files choice

-Under C/C++ tab->Preprocessor definitions, add:
WINNT,USE_OPTIONS_H,i386,LOOKUPDLL

-Under C/C++ tab->Project Options, add:
/I "..\include" /I "..\compat\include"


Information on Tools->Options->Directories->Include files choice
----------------------------------------------------------------
1. For DSComm project:

-Add path for Java-SDK include directory (e.g. c:\sdk-java32\include)


Debugging DSComm.dll
--------------------
To start debugging session, config the Project->Settings->Debug tab:
-in Executable for debug session, add:
c:\winnt\jview.exe

-in Working directory, add a directory where your Java application source code (and your debugging DSComm.dll) resides:
e.g. z:\cwn\mengproject\src\ds

-in Program arguments, add arguments to locate Java main routine file:
e.g. /p /cp:p "<JAVAPACKAGES>" z:\cwn\mengproject\src\ds\DirectoryClientTest
