NAME

catdasp_initalltakserver - set protocol struct for server ALLTAK

SYNOPSIS

#include <cat/cat.h>

#include <cat/dasp.h>

int catdasp_initalltakserver(catdasp_protocol *proto, int version);

DESCRIPTION

This function fills in the supplied protocol structure proto with handler data suitable for the server side of the ALLTAK protocol. The version of the protocol is specified by version.

Versions 0 and 1 of ALLTAK are currently supported.

Version 1 of ALLTAK uses a key cache, which must be installed with catdasp_setdb. If no cache is installed, version 1 degenerates into version 0, with slightly more overhead.

To support both versions 0 and 1, two separate protocol handlers should be initialized and installed in the DASP context. Version 1 should always be preferred over version 0.

RETURN VALUES

The function returns 0 if successful, or a negative code on error.

Specifically, this function returns CAT_ENOTSUP for an unsupported version.

SEE ALSO

cat, catdasp

catdasp_initalltaasclient, catdasp_initalltaasserver, catdasp_initalltakclient