File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind5b-3a.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

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


static int requirements = SR_HALFDUPLEX | SR_NEGOTIATED;

static int owned = 0;


/* ARGSUSED */

main (argc, argv, envp)
int	argc;
char  **argv,
      **envp;
{
    int     sd,
	    settings;
    char    buffer[BUFSIZ];
    register struct SSAPaddr   *sz;
    struct SSAPref  sfs;
    register struct SSAPref *sf = &sfs;
    struct SSAPconnect  scs;
    register struct SSAPconnect *sc = &scs;
    struct SSAPrelease  srs;
    register struct SSAPrelease *sr = &srs;
    struct SSAPindication   sis;
    register struct SSAPindication *si = &sis;
    register struct SSAPabort *sa = &si -> si_abort;
    register struct isoservent *is;

    if ((is = getisoserventbyname ("sink", "ssap")) == NULL)
	error ("ssap/sink: unknown provider/entity pair");
    if (argc != 2)
	error ("usage: source \"host\"");

...

unix.superglobalmegacorp.com

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