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 g

⟦f9c130974⟧ TextFile

    Length: 1354 (0x54a)
    Types: TextFile
    Names: »grindB-5.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/doc/manual/grindB-5.c« 
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/doc/manual/grindB-5.c« 

TextFile

#include <stdio.h>
#include <isode/rtsap.h>
#include <isode/isoservent.h>


main (argc, argv, envp)
int	argc;
char  **argv,
      **envp;
{
    int	    result,
	    sd;
    struct RoSAPindication  rois;
    register struct RoSAPindication *roi = &rois;
    register struct RoSAPpreject   *rop = &roi -> roi_preject;
    struct RtSAPstart   rtss;
    register struct RtSAPstart *rts = &rtss;
    struct RtSAPindication  rtis;
    register struct RtSAPindication *rti = &rtis;
    register struct RtSAPabort   *rta = &rti -> rti_abort;

    if (RtInit (argc, argv, rts, rti) == NOTOK)
	error ("initialization fails: %s", RtErrString (rta -> rta_reason));

    sd = rts -> rts_sd;
/*  do authentication using rts -> rts_data here... */
    RTSFREE (rts);
    
/* read command line arguments here... */

/* could use RTS_BUSY, RTS_VALIDATE, or RTS_MODE instead and then exit */

    if (RtBeginResponse (sd, RTS_ACCEPT, NULLPE, rti) == NOTOK)
	error ("RT-BEGIN.RESPONSE: %s", RtErrString (rta -> rta_reason));

    if (RoSetService (sd, RoPService, roi) == NOTOK)
	error ("RoSetService: %s", RoErrString (rop -> rop_reason));

    for (;;)
	switch (result = RoWaitRequest (sd, NOTOK, roi)) {
	    case NOTOK: 
	    case OK: 
	    case DONE: 
		ros_indication (sd, roi);
		break;

	    default: 
		error ("unknown return from RoWaitRequest=%d", result);
	}
}