Re: SLAPD under Windows NT

peter (
Wed, 3 Jul 1996 12:43:35 -0400

On Wed, 3 Jul 1996 wrote:
> Does anybody know of SLADP running under Windows NT ?

We've done the port, it was pretty straightforward (we've yet to decide
how much of the code we will "return to the fold", as it were). Things
to watch out for:

Under NT, socket descriptors are not small integers and will not be
assigned in monotonically increasing order; thus you cannot use them
as indices into the connection array. Instead, initialize the
socket descriptors in all connections to -1, as is done in the UMich
code, then, instead of using the socket descriptor as an index into
the array, search the array for the first connection whose socket is
still -1 (or keep a separate "next available connection" counter).

Under NT, files are either text or binary; be aware of this when
opening the db files (i.e., be sure to open them as binary).

NT threads are not POSIX threads, you'll have to do some work to get
POSIX semantics (not too tricky, just tedious).

Those are the biggies; the rest of the port is just the usual porting
tedium. The code itself is written and structured so well that the port
was pretty straightforward.