|
|
1.1 root 1: \File{grind6\-2.c},{22:23},{Jun 12 1988}
2: \L{\LB{\K{\#include} \<stdio.h\>}}
3: \L{\LB{\K{\#include} \<isode\/tsap.h\>}}
4: \L{\LB{\K{\#include} \<isode\/isoservent.h\>}}
5: \L{\LB{}}
6: \L{\LB{}}
7: \L{\LB{\C{}\/* ARGSUSED *\/\CE{}}}
8: \L{\LB{}}
9: \L{\LB{\Proc{main}main (argc, argv, envp)}}
10: \L{\LB{\K{int}}\Tab{8}{argc;}}
11: \L{\LB{\K{char} **argv,}}
12: \L{\LB{ **envp;}}
13: \L{\LB{\{}}
14: \L{\LB{ \K{int} result,}}
15: \L{\LB{}\Tab{8}{ sd;}}
16: \L{\LB{ \K{struct} TSAPstart tss;}}
17: \L{\LB{ \K{register} \K{struct} TSAPstart *ts = \&tss;}}
18: \L{\LB{ \K{struct} TSAPdata txs;}}
19: \L{\LB{ \K{register} \K{struct} TSAPdata *tx = \&txs;}}
20: \L{\LB{ \K{struct} TSAPdisconnect tds;}}
21: \L{\LB{ \K{register} \K{struct} TSAPdisconnect *td = \&tds;}}
22: \L{\LB{}}
23: \L{\LB{ \K{if} (TInit (argc, argv, ts, td) == NOTOK)}}
24: \L{\LB{}\Tab{8}{error (\S{}\"T\-CONNECT.INDICATION: \%s\"\SE{}, TErrString (td \-\> td\_reason));}}
25: \L{\LB{ sd = ts \-\> ts\_sd;}}
26: \L{\LB{}}
27: \L{\LB{\C{}\/* examine argv here, if need be *\/\CE{}}}
28: \L{\LB{}}
29: \L{\LB{ \K{if} (TConnResponse (sd, \&ts \-\> ts\_called, ts \-\> ts\_expedited,}}
30: \L{\LB{}\Tab{16}{ts \-\> ts\_data, ts \-\> ts\_len, NULLQOS, td) == NOTOK)}}
31: \L{\LB{}\Tab{8}{error (\S{}\"T\-CONNECT.RESPONSE: \%s\"\SE{}, TErrString (td \-\> td\_reason));}}
32: \L{\LB{}}
33: \L{\LB{...}}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.