Annotation of 43BSDReno/contrib/isode-beta/doc/manual/grindB-4.c, revision 1.1

1.1     ! root        1: #include <isode/rtsap.h>
        !             2: #include <isode/isoservent.h>
        !             3: 
        !             4: ...
        !             5: 
        !             6: register struct SSAPaddr *sa;
        !             7: struct RtSAPaddr rtas;
        !             8: register struct RtSAPaddr *rta = &rtas;
        !             9: register struct isoservent *is;
        !            10: 
        !            11: ...
        !            12: 
        !            13: if ((is = getisoserventbyname ("p1", "rtsap")) == NULL)
        !            14:     error ("rtsap/p1");
        !            15: 
        !            16: /* RemoteHost is the host we're interested in,
        !            17:    e.g., ``gremlin.nrtc.northrop.com'' */
        !            18: 
        !            19: rta -> rta_port = is -> is_port;
        !            20: if ((is = getisoserventbyname ("rts", "ssap")) == NULL)
        !            21:     error ("ssap/rts");
        !            22: if ((sa = is2saddr (RemoteHost, NULLCP, (struct isoservent *) 0))
        !            23:        == NULLSA)
        !            24:     error ("address translation failed");
        !            25: rta -> rta_addr = *sa;
        !            26: 
        !            27: ...

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.