From 7d3f0a811c733ac73817f5049562b6ebab2abc28 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 28 Jun 2015 00:11:55 +0200 Subject: Add basic acse definitions --- ACSE/acse.go | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 ACSE/acse.go (limited to 'ACSE') diff --git a/ACSE/acse.go b/ACSE/acse.go new file mode 100644 index 0000000..6b799b2 --- /dev/null +++ b/ACSE/acse.go @@ -0,0 +1,59 @@ +package acse + +// 2.2.0.0.1 + +type ObjectIdentifier []int // asn1.ObjectIdentifier + +// Application Constructed implicit 0 +type AARQ struct { + ProtocolVersion Version // 0 implicit BitString + ApplicationContextName ObjectIdentifier // 1 + UserInformation interface{} // 30 implicit +} + +type Version byte + +const ( + Version1 Version = iota +) + +// Application Constructed implicit 1 +type AARE struct { + ProtocolVersion Version // 0 implicit BitString + ApplicationContextName ObjectIdentifier // 1 + Result Result // 2 + ResultSourceDiagnostic AcseServiceUser // 3 + UserInformation interface{} // 30 implicit +} + +type Result int + +const ( + Accepted Result = iota + RejectedPermanent +) + +type AcseServiceUser int + +const ( + Null AcseServiceUser = iota + NoReasonGiven +) + +// Application Constructed implicit 2 +type RLRQ struct{} + +// Application Constructed implicit 3 +type RLRE struct{} + +// Application Constructed implicit 4 +type ABRT struct { + AbortSource AbortSource // 0 implicit +} + +type AbortSource int + +const ( + ServiceUser AbortSource = iota + ServiceProvider +) -- cgit v1.2.3