-
Notifications
You must be signed in to change notification settings - Fork 1
/
sftudef.sdl
96 lines (67 loc) · 1.44 KB
/
sftudef.sdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
MODULE SFTUDEF IDENT "SFTUDEF-1-X";
/*++
/* Facility:
/* StarLet File Transfer Utility
/*
/* Abstract:
/* This is an interface module contains data structures definitions,
/* constants, functions/procedures prototypes.
/*
/* Author:
/* Ruslan R. Laishev
/*
/* Creation Date: 2-JUN-2016
/*
/* Modification History:
/*
/*--
CONSTANT vblocksz EQUALS 512 PREFIX sftu$;
CONSTANT bucketsz EQUALS 8192 PREFIX sftu$;
/*
AGGREGATE asc STRUCTURE PREFIX asc_;
len BYTE UNSIGNED;
sts CHARACTER LENGTH 255;
END asc;
/*
CONSTANT (
login, logout,, quit,
ls, cd,
get, put,
data, ack
) EQUALS 1 INCREMENT 1 PREFIX sftu$ TAG ctl;
/*
AGGREGATE put STRUCTURE PREFIX put$ TAG sftu NOALIGN;
ebk LONGWORD UNSIGNED; /* XAB$L_EBK
ffb WORD UNSIGNED; /* XAB$W_FFB
fname asc;
CONSTANT sz EQUALS . ;
END put;
/*
AGGREGATE data STRUCTURE PREFIX data$ TAG sftu NOALIGN;
len WORD UNSIGNED;
CONSTANT sz EQUALS . ;
data BYTE UNSIGNED DIMENSION 0;
END data;
/*
AGGREGATE ack STRUCTURE PREFIX ack$ TAG sftu NOALIGN;
vbn LONGWORD UNSIGNED;
status LONGWORD UNSIGNED;
CONSTANT sz EQUALS . ;
END ack;
/*
AGGREGATE pdu STRUCTURE PREFIX pdu$ TAG sftu NOALIGN;
req LONGWORD UNSIGNED;
CONSTANT sz EQUALS . ;
_u UNION;
put sftu_put;
data sftu_data;
ack sftu_ack;
END _u;
END pdu;
/*
AGGREGATE frame STRUCTURE PREFIX frame$ TAG sftu NOALIGN;
len WORD UNSIGNED;
crc32 LONGWORD UNSIGNED;
pdu sftu_pdu;
END frame;
END_MODULE SFTUDEF;