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


/* ARGSUSED */

main (argc, argv, envp)
int	argc;
char  **argv,
      **envp;
{
    int     result,
	    sd;
    struct TSAPstart    tss;
    register struct TSAPstart  *ts = &tss;
    struct TSAPdata txs;
    register struct TSAPdata  *tx = &txs;
    struct TSAPdisconnect   tds;
    register struct TSAPdisconnect *td = &tds;

    if (TInit (argc, argv, ts, td) == NOTOK)
	error ("T-CONNECT.INDICATION: %s", TErrString (td -> td_reason));
    sd = ts -> ts_sd;

/* examine argv here, if need be */

    if (TConnResponse (sd, &ts -> ts_called, ts -> ts_expedited,
		ts -> ts_data, ts -> ts_len, NULLQOS, td) == NOTOK)
	error ("T-CONNECT.RESPONSE: %s", TErrString (td -> td_reason));

...

unix.superglobalmegacorp.com

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