|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 1639 (0x667)
Types: TextFile
Names: »grind2a-2a.tex«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/doc/manual/grind2a-2a.tex«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/doc/manual/grind2a-2a.tex«
\File{grind2a\-2a.c},{22:23},{Jun 12 1988}
\L{\LB{\K{\#include} \<stdio.h\>}}
\L{\LB{\K{\#include} \S{}\"generic.h\"\SE{}}\Tab{32}{\C{}\/* defines OPERATIONS and ERRORS *\/\CE{}}}
\L{\LB{\K{\#include} \<isode\/rosap.h\>}}
\L{\LB{\K{\#include} \<isode\/tsap.h\>}\Tab{32}{\C{}\/* for listening *\/\CE{}}}
\L{\LB{\K{\#include} \<setjmp.h\>}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\K{static} \K{char} *myservice = \S{}\"service\"\SE{};}}
\L{\LB{}}
\L{\LB{\K{static} jmp\_buf toplevel;}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\K{int}}\Tab{8}{ros\_init (), ros\_work (), ros\_lose ();}}
\L{\LB{}}
\L{\LB{}}
\L{\LB{\Proc{main}main (argc, argv, envp)}}
\L{\LB{\K{int}}\Tab{8}{argc;}}
\L{\LB{\K{char} **argv,}}
\L{\LB{ **envp;}}
\L{\LB{\{}}
\L{\LB{ AEI}\Tab{8}{ aei;}}
\L{\LB{ \K{struct} TSAPdisconnect tds;}}
\L{\LB{ \K{register} \K{struct} TSAPdisconnect *td = \&tds;}}
\L{\LB{}}
\L{\LB{ \K{if} ((aei = str2aei (PLocalHostName (), myservice)) == NULLAEI)}}
\L{\LB{}\Tab{8}{fatal (\S{}\"unknown application\-entity: \%s\-\%s\"\SE{}, PLocalHostName (),}}
\L{\LB{}\Tab{16}{myservice);}}
\L{\LB{}}
\L{\LB{ \K{if} (isodeserver (argc, argv, aei, ros\_init, ros\_work, ros\_lose, td)}}
\L{\LB{}\Tab{8}{ == NOTOK) \{}}
\L{\LB{}\Tab{8}{\K{if} (td \-\> td\_cc \> 0)}}
\L{\LB{}\Tab{8}{ fatal (\S{}\"isodeserver: [\%s] \%*.*s\"\SE{}, TErrString (td \-\> td\_reason),}}
\L{\LB{}\Tab{16}{ td \-\> td\_cc, td \-\> td\_cc, td \-\> td\_data);}}
\L{\LB{}\Tab{8}{\K{else}}}
\L{\LB{}\Tab{8}{ fatal (\S{}\"isodeserver: [\%s]\"\SE{}, TErrString (td \-\> td\_reason));}}
\L{\LB{ \}}}
\L{\LB{}}
\L{\LB{ exit (0);}}
\L{\LB{\}}}
\L{\LB{}}
\L{\LB{...}}