|
|
1.1 root 1: /* llib-lpsap2-lpp - lint library for -lpsap2-lpp */
2:
3: /*
4: * $Header: /f/osi/psap2-lpp/RCS/llib-lpsap2-lpp,v 7.0 89/11/23 22:15:48 mrose Rel $
5: *
6: * Contributed by The Wollongong Group, Inc.
7: *
8: *
9: * $Log: llib-lpsap2-lpp,v $
10: * Revision 7.0 89/11/23 22:15:48 mrose
11: * Release 6.0
12: *
13: */
14:
15: /*
16: * NOTICE
17: *
18: * Acquisition, use, and distribution of this module and related
19: * materials are subject to the restrictions of a license agreement.
20: * Consult the Preface in the User's Manual for the full terms of
21: * this agreement.
22: *
23: */
24:
25:
26: /* LINTLIBRARY */
27:
28: #include "psap2.h"
29:
30: /* */
31:
32: /* P-CONNECT.INDICATION */
33:
34: int PInit (vecp, vec, ps, pi)
35: int vecp;
36: char **vec;
37: struct PSAPstart *ps;
38: struct PSAPindication *pi;
39: {
40: return PInit (vecp, vec, ps, pi);
41: }
42:
43:
44: /* P-CONNECT.RESPONSE */
45:
46: int PConnResponse (sd, status, responding, multiple, ctxlist, defctxresult,
47: prequirements, srequirements, isn, settings, ref, data, ndata, pi)
48: int sd;
49: struct PSAPaddr *responding;
50: int status,
51: multiple,
52: prequirements,
53: srequirements,
54: settings,
55: ndata;
56: long isn;
57: struct PSAPctxlist *ctxlist;
58: int defctxresult;
59: struct SSAPref *ref;
60: PE *data;
61: struct PSAPindication *pi;
62: {
63: return PConnResponse (sd, status, responding, multiple, ctxlist,
64: defctxresult, prequirements, srequirements, isn, settings, ref,
65: data, ndata, pi);
66: }
67:
68:
69: /* P-(ASYN-)CONNECT.REQUEST */
70:
71: int PAsynConnRequest (calling, called, multiple, ctxlist, defctxname,
72: prequirements, srequirements, isn, settings, ref, data, ndata, qos,
73: pc, pi, async)
74: struct PSAPaddr *calling,
75: *called;
76: int multiple,
77: prequirements,
78: srequirements,
79: settings,
80: ndata,
81: async;
82: long isn;
83: struct PSAPctxlist *ctxlist;
84: OID defctxname;
85: struct SSAPref *ref;
86: PE *data;
87: struct QOStype *qos;
88: struct PSAPconnect *pc;
89: struct PSAPindication *pi;
90: {
91: return PAsynConnRequest (calling, called, multiple, ctxlist, defctxname,
92: prequirements, srequirements, isn, settings, ref, data,
93: ndata, qos, pc, pi, async);
94: }
95:
96:
97: /* P-ASYN-RETRY.REQUEST (pseudo) */
98:
99: int PAsynRetryRequest (sd, pc, pi)
100: int sd;
101: struct PSAPconnect *pc;
102: struct PSAPindication *pi;
103: {
104: return PAsynRetryRequest (sd, pc, pi);
105: }
106:
107:
108: /* P-ASYN-NEXT.REQUEST (pseudo) */
109:
110: int PAsynNextRequest (sd, pc, pi)
111: int sd;
112: struct PSAPconnect *pc;
113: struct PSAPindication *pi;
114: {
115: return PAsynNextRequest (sd, pc, pi);
116: }
117:
118:
119: /* P-[*-]DATA.REQUEST */
120:
121: int PDataRequest (sd, data, ndata, pi)
122: int sd;
123: PE *data;
124: int ndata;
125: struct PSAPindication *pi;
126: {
127: return PDataRequest (sd, data, ndata, pi);
128:
129: }
130:
131:
132: /* P-READ.REQUEST (pseudo) */
133:
134: int PReadRequest (sd, px, secs, pi)
135: int sd;
136: struct PSAPdata *px;
137: int secs;
138: struct PSAPindication *pi;
139: {
140: return PReadRequest (sd, px, secs, pi);
141: }
142:
143:
144: /* P-U-ABORT.REQUEST */
145:
146: int PUAbortRequest (sd, data, ndata, pi)
147: int sd;
148: PE *data;
149: int ndata;
150: struct PSAPindication *pi;
151: {
152: return PUAbortRequest (sd, data, ndata, pi);
153: }
154:
155:
156: /* P-RELEASE.REQUEST */
157:
158: int PRelRequest (sd, data, ndata, secs, pr, pi)
159: int sd;
160: PE *data;
161: int ndata;
162: int secs;
163: struct PSAPrelease *pr;
164: struct PSAPindication *pi;
165: {
166: return PRelRequest (sd, data, ndata, secs, pr, pi);
167: }
168:
169:
170: /* P-RELEASE-Retry.REQUEST (pseudo) */
171:
172: int PRelRetryRequest (sd, secs, pr, pi)
173: int sd;
174: int secs;
175: struct PSAPrelease *pr;
176: struct PSAPindication *pi;
177: {
178: return PRelRetryRequest (sd, secs, pr, pi);
179: }
180:
181:
182: /* P-RELEASE.RESPONSE */
183:
184: int PRelResponse (sd, status, data, ndata, pi)
185: int sd;
186: int status;
187: PE *data;
188: int ndata;
189: struct PSAPindication *pi;
190: {
191: return PRelResponse (sd, status, data, ndata, pi);
192: }
193:
194:
195: /* define vectors for INDICATION events */
196:
197: int PSetIndications (sd, data, tokens, sync, activity, report, finish,
198: abort, pi)
199: int sd;
200: IFP data,
201: tokens,
202: sync,
203: activity,
204: report,
205: finish,
206: abort;
207: struct PSAPindication *pi;
208: {
209: return PSetIndications (sd, data, tokens, sync, activity, report, finish,
210: abort, pi);
211: }
212:
213:
214: /* map presentation descriptors for select() */
215:
216: int PSelectMask (sd, mask, nfds, pi)
217: int sd;
218: fd_set *mask;
219: int *nfds;
220: struct PSAPindication *pi;
221: {
222: return PSelectMask (sd, mask, nfds, pi);
223: }
224:
225:
226: /* return PSAP error code in string form */
227:
228: char *PErrString (c)
229: int c;
230: {
231: return PErrString (c);
232: }
233:
234:
235: /* return TSAP error code in string form */
236:
237: char *TErrString (c)
238: int c;
239: {
240: return TErrString (c);
241: }
242:
243:
244: /* start listening on an TSAP */
245:
246: int TNetListen (ta, td)
247: struct TSAPaddr *ta;
248: struct TSAPdisconnect *td;
249: {
250: return TNetListen (ta, td);
251: }
252:
253:
254: /* start listening on a set of unique TSAPs */
255:
256: int TNetUnique (ta, td)
257: struct TSAPaddr *ta;
258: struct TSAPdisconnect *td;
259: {
260: return TNetUnique (ta, td);
261: }
262:
263:
264: /* accept a call on an TSAP */
265:
266: int TNetAcceptAux (vecp, vec, newfd, ta, nfds, rfds, wfds, efds, secs, td)
267: int *vecp;
268: char **vec;
269: int *newfd;
270: struct TSAPaddr *ta;
271: int nfds;
272: fd_set *rfds,
273: *wfds,
274: *efds;
275: int secs;
276: struct TSAPdisconnect *td;
277: {
278: return TNetAcceptAux (vecp, vec, newfd, ta, nfds, rfds, wfds, efds, secs,
279: td);
280: }
281:
282:
283: /* stop listening on an TSAP */
284:
285: int TNetClose (ta, td)
286: struct TSAPaddr *ta;
287: struct TSAPdisconnect *td;
288: {
289: return TNetClose (ta, td);
290: }
291:
292:
293: /* fork after accepting a connection */
294:
295: int TNetFork (vecp, vec, td)
296: int vecp;
297: char **vec;
298: struct TSAPdisconnect *td;
299: {
300: return TNetFork (vecp, vec, td);
301: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.