DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T n

⟦d7573bf61⟧ TextFile

    Length: 1298 (0x512)
    Types: TextFile
    Names: »ns-c.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦041b9c0f8⟧ »EurOpenD22/isode/pepsy.system-6.0.Z« 
        └─⟦d49939f05⟧ 
            └─⟦6a28ec38e⟧ »pepsy.tar« 
                └─⟦this⟧ »acsap/ns-c.c« 

TextFile

/* Copyright 1989 CSIRO Division of Information Technology 
 * May be given away but not sold for profit - See Copyright file for details
 */
#include <stdio.h>
#include "psap.h"
#include "isoaddrs.h"
#include "NS-types.h"

build_NS_Query (pe, explicit, len, buffer, ns)
register PE     *pe;
int	explicit;
int	len;
char   *buffer;
struct ns_query *ns;
{
    struct type_NS_Query	parm;
    int	retcode;

    parm.request__id = ns->ns_id;
    parm.name = str2qb(ns->ns_name, strlen(ns->ns_name), 1);
    parm.attribute = str2qb(ns->ns_attribute, strlen(ns->ns_attribute), 1);

    retcode = encode_NS_Query(pe, explicit, len, buffer, &parm);

    qb_free(parm.name);
    qb_free(parm.attribute);

    return (retcode);
}

build_NS_Response (pe, explicit, len, buffer, parm)
register PE     *pe;
int	explicit;
int	len;
char   *buffer;
char *parm;
{
    return (encode_NS_Response(pe, explicit, len, buffer, parm));
}

parse_NS_Query (pe, explicit, len, buffer, parm)
register PE	pe;
int	explicit;
int    *len;
char  **buffer;
char	**parm;
{
    return (decode_NS_Query(pe, explicit, len, buffer, parm));
}

parse_NS_Response (pe, explicit, len, buffer, parm)
register PE	pe;
int	explicit;
int    *len;
char  **buffer;
char **parm;
{
    return (decode_NS_Response(pe, explicit, len, buffer, parm));
}