X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Fasn.xml;h=cf8cbb732741315cb0f3b696e44f6b649adcf23c;hp=4359a0254821e7cd83353257e9c2e7b150c52b2a;hb=71a35a24552103dbfc1258085c706e1d6fcad180;hpb=3b3deb4d093d747360a5eb0e02c6b4e9c8a89b84 diff --git a/doc/asn.xml b/doc/asn.xml index 4359a02..cf8cbb7 100644 --- a/doc/asn.xml +++ b/doc/asn.xml @@ -1,9 +1,9 @@ - - The ASN Module - Introduction + + The Z39.50 ASN.1 Module + Introduction The &asn; module provides you with a set of C struct definitions for the - various PDUs of the protocol, as well as for the complex types + various PDUs of the Z39.50 protocol, as well as for the complex types appearing within the PDUs. For the primitive data types, the C representation often takes the form of an ordinary C language type, such as int. For ASN.1 constructs that have no direct @@ -11,8 +11,15 @@ the &odr; module (see section The ODR Module) provides auxiliary definitions. + + The &asn; module is located in sub directory z39.50. + There you'll find C files that implements encoders and decoders for the + Z39.50 types. You'll also find the protocol definitions: + z3950v3.asn, esupdate.asn, + and others. + - Preparing PDUs + Preparing PDUs A structure representing a complex ASN.1 type doesn't in itself contain the @@ -125,7 +132,7 @@ - Object Identifiers + Object Identifiers When you refer to object identifiers in your application, you need to be aware that SR and Z39.50 use two different set of OIDs to refer to @@ -187,7 +194,7 @@ struct oident *oid_getentbyoid(int *o); - EXTERNAL Data + EXTERNAL Data In order to achieve extensibility and adaptability to different @@ -333,7 +340,7 @@ typedef struct Z_ext_typeent - PDU Contents Table + PDU Contents Table We include, for reference, a listing of the fields of each top-level @@ -342,9 +349,9 @@ typedef struct Z_ext_typeent Default settings for PDU Initialize Request - - - + + + Field @@ -372,10 +379,10 @@ typedef struct Z_ext_typeent idAuthenticationZ_IdAuthenticationNULL - implementationIdchar*"YAZ (id=81)" + implementationIdchar*"81" - implementationNamechar*"Index Data/YAZ" + implementationNamechar*"YAZ" implementationVersionchar*YAZ_VERSION @@ -393,9 +400,9 @@ typedef struct Z_ext_typeent
Default settings for PDU Initialize Response - - - + + + Field @@ -423,10 +430,10 @@ typedef struct Z_ext_typeent resultbool_tTRUE - implementationIdchar*"YAZ (id=81)" + implementationIdchar*"id)" - implementationNamechar*"Index Data/YAZ" + implementationNamechar*"YAZ" implementationVersionchar*YAZ_VERSION @@ -443,9 +450,9 @@ typedef struct Z_ext_typeent
Default settings for PDU Search Request - - - + + + Field @@ -505,9 +512,9 @@ typedef struct Z_ext_typeent
Default settings for PDU Search Response - - - + + + Field @@ -554,9 +561,9 @@ typedef struct Z_ext_typeent
Default settings for PDU Present Request - - - + + + Field @@ -607,9 +614,9 @@ typedef struct Z_ext_typeent
Default settings for PDU Present Response - - - + + + Field @@ -643,9 +650,9 @@ typedef struct Z_ext_typeent
Default settings for Delete Result Set Request - - - + + + Field @@ -676,9 +683,9 @@ typedef struct Z_ext_typeent
Default settings for Delete Result Set Response - - - + + + Field @@ -721,9 +728,9 @@ typedef struct Z_ext_typeent
Default settings for Scan Request - - - + + + Field @@ -766,9 +773,9 @@ typedef struct Z_ext_typeent
Default settings for Scan Response - - - + + + Field @@ -809,9 +816,9 @@ typedef struct Z_ext_typeent
Default settings for Trigger Resource Control Request - - - + + + Field @@ -845,9 +852,9 @@ typedef struct Z_ext_typeent
Default settings for Resource Control Request - - - + + + Field @@ -885,9 +892,9 @@ typedef struct Z_ext_typeent
Default settings for Resource Control Response - - - + + + Field @@ -916,9 +923,9 @@ typedef struct Z_ext_typeent
Default settings for Access Control Request - - - + + + Field @@ -947,9 +954,9 @@ typedef struct Z_ext_typeent
Default settings for Access Control Response - - - + + + Field @@ -980,9 +987,9 @@ typedef struct Z_ext_typeent
Default settings for Segment - - - + + + Field @@ -1012,9 +1019,9 @@ typedef struct Z_ext_typeent
Default settings for Close - - - + + + Field