source: trunk/ab5.0/ablib/src/qos.ab @ 560

Last change on this file since 560 was 497, checked in by イグトランス (egtra), 15 years ago

インクルードガードとその他不要な前処理定義などの削除

File size: 2.2 KB
Line 
1' qos.ab
2
3' Definitions for valued-based Service Type for each direction of data flow.
4
5TypeDef SERVICETYPE = DWord
6
7Const SERVICETYPE_NOTRAFFIC = &h00000000
8Const SERVICETYPE_BESTEFFORT = &h00000001
9Const SERVICETYPE_CONTROLLEDLOAD = &h00000002
10Const SERVICETYPE_GUARANTEED = &h00000003
11Const SERVICETYPE_NETWORK_UNAVAILABLE = &h00000004
12Const SERVICETYPE_GENERAL_INFORMATION = &h00000005
13Const SERVICETYPE_NOCHANGE = &h00000006
14Const SERVICETYPE_NONCONFORMING = &h00000009
15Const SERVICETYPE_NETWORK_CONTROL = &h0000000A
16Const SERVICETYPE_QUALITATIVE = &h0000000D
17' The usage of these is currently not supported.
18Const SERVICE_BESTEFFORT = &h80010000
19Const SERVICE_CONTROLLEDLOAD = &h80020000
20Const SERVICE_GUARANTEED = &h80040000
21Const SERVICE_QUALITATIVE = &h80200000
22
23' Flags to control the usage of RSVP on this flow.
24Const SERVICE_NO_TRAFFIC_CONTROL = &h81000000
25
26Const SERVICE_NO_QOS_SIGNALING = &h40000000
27
28' Flow Specifications for each direction of data flow.
29Type FLOWSPEC
30    TokenRate As DWord
31    TokenBucketSize As DWord
32    PeakBandwidth As DWord
33    Latency As DWord
34    DelayVariation As DWord
35    ServiceType As SERVICETYPE
36    MaxSduSize As DWord
37    MinimumPolicedSize As DWord
38End Type
39TypeDef PFLOWSPEC = *FLOWSPEC
40TypeDef LPFLOWSPEC = *FLOWSPEC
41
42Const QOS_NOT_SPECIFIED = &hFFFFFFFF
43
44Const POSITIVE_INFINITY_RAT = &hFFFFFFFE
45
46Type QOS_OBJECT_HDR
47    bjectType As DWord
48    bjectLength As DWord
49End Type
50TypeDef LPQOS_OBJECT_HDR = *QOS_OBJECT_HDR
51
52Const QOS_GENERAL_ID_BASE = 2000
53
54Const QOS_OBJECT_END_OF_LIST = (&h00000001 + QOS_GENERAL_ID_BASE)
55Const QOS_OBJECT_SD_MODE = (&h00000002 + QOS_GENERAL_ID_BASE)
56Const QOS_OBJECT_SHAPING_RATE = (&h00000003 + QOS_GENERAL_ID_BASE)
57Const QOS_OBJECT_DESTADDR = (&h00000004 + QOS_GENERAL_ID_BASE)
58
59
60Type QOS_SD_MODE
61    ObjectHdr As QOS_OBJECT_HDR
62    ShapeDiscardMode As DWord
63End Type
64TypeDef LPQOS_SD_MODE = QOS_SD_MODE
65
66Const TC_NONCONF_BORROW = 0
67Const TC_NONCONF_SHAPE = 1
68Const TC_NONCONF_DISCARD = 2
69Const TC_NONCONF_BORROW_PLUS = 3 ' Not supported currently
70
71Type QOS_SHAPING_RATE
72    ObjectHdr As QOS_OBJECT_HDR
73    ShapingRate As DWord
74End Type
75TypeDef LPQOS_SHAPING_RATE = *QOS_SHAPING_RATE
Note: See TracBrowser for help on using the repository browser.