File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grindB-1.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

#include <isode/rosap.h>
#include <isode/isoservent.h>

...

register struct SSAPaddr *sa;
struct RoSAPaddr roas;
register struct RoSAPaddr *roa = &roas;
register struct isoservent *is;

...

if ((is = getisoserventbyname ("directory", "rosap")) == NULL)
    error ("rosap/directory");

/* RemoteHost is the host we're interested in,
   e.g., ``gremlin.nrtc.northrop.com'' */

roa -> roa_port = is -> is_port;
if ((is = getisoserventbyname ("ros", "ssap")) == NULL)
    error ("ssap/ros");
if ((sa = is2saddr (RemoteHost, NULLCP, (struct isoservent *) is))
	== NULLSA)
    error ("address translation failed");
roa -> roa_addr = *sa;

...

unix.superglobalmegacorp.com

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