File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grindB-4.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/rtsap.h>
#include <isode/isoservent.h>

...

register struct SSAPaddr *sa;
struct RtSAPaddr rtas;
register struct RtSAPaddr *rta = &rtas;
register struct isoservent *is;

...

if ((is = getisoserventbyname ("p1", "rtsap")) == NULL)
    error ("rtsap/p1");

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

rta -> rta_port = is -> is_port;
if ((is = getisoserventbyname ("rts", "ssap")) == NULL)
    error ("ssap/rts");
if ((sa = is2saddr (RemoteHost, NULLCP, (struct isoservent *) 0))
	== NULLSA)
    error ("address translation failed");
rta -> rta_addr = *sa;

...

unix.superglobalmegacorp.com

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