Annotation of 43BSDReno/contrib/isode-beta/doc/manual/grind6-2.c, revision 1.1.1.1

1.1       root        1: #include <stdio.h>
                      2: #include <isode/tsap.h>
                      3: #include <isode/isoservent.h>
                      4: 
                      5: 
                      6: /* ARGSUSED */
                      7: 
                      8: main (argc, argv, envp)
                      9: int    argc;
                     10: char  **argv,
                     11:       **envp;
                     12: {
                     13:     int     result,
                     14:            sd;
                     15:     struct TSAPstart    tss;
                     16:     register struct TSAPstart  *ts = &tss;
                     17:     struct TSAPdata txs;
                     18:     register struct TSAPdata  *tx = &txs;
                     19:     struct TSAPdisconnect   tds;
                     20:     register struct TSAPdisconnect *td = &tds;
                     21: 
                     22:     if (TInit (argc, argv, ts, td) == NOTOK)
                     23:        error ("T-CONNECT.INDICATION: %s", TErrString (td -> td_reason));
                     24:     sd = ts -> ts_sd;
                     25: 
                     26: /* examine argv here, if need be */
                     27: 
                     28:     if (TConnResponse (sd, &ts -> ts_called, ts -> ts_expedited,
                     29:                ts -> ts_data, ts -> ts_len, NULLQOS, td) == NOTOK)
                     30:        error ("T-CONNECT.RESPONSE: %s", TErrString (td -> td_reason));
                     31: 
                     32: ...

unix.superglobalmegacorp.com

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