Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yaz-asncomp(1) [debian man page]

YAZ-ASNCOMP(1)							     Commands							    YAZ-ASNCOMP(1)

NAME
yaz-asncomp - YAZ ASN.1 compiler SYNOPSIS
yaz-asncomp [-v] [-c cfile] [-h hfile] [-p pfile] [-d config] [-I includeout] [-i includedir] [-m module] [filename] DESCRIPTION
yaz-asncomp is an ASN.1 compiler that reads an ASN.1 specification in filename and produces C/C++ definitions and BER encoders/decoders for it. The produced C/C++ code and header files uses the ODR module of YAZ which is a library that encodes/decodes/prints BER packages. yaz-asncomp allows you to specify name of resulting source via options. Alternatively, you can specify a DEFINISIONS file, which provides customized output to many output files - if the ASN.1 specification file consists of many modules. This utility is written in Tcl. Any version of Tcl should work. OPTIONS
-v Makes the ASN.1 compiler print more verbose about the various stages of operations. -c cfile Specifies the name of the C/C++ file with encoders/decoders. -h hfile Specifies the name of header file with definitions. -p pfile Specifies the name of the a private header file with definitions. By default all definitions are put in header file (option -h). -d dfile Specifies the name of a definitions file. -I iout Specifies first part of directory in which header files are written. -i idir Specifies second part of directory in which header files are written. -m module Specifies that ASN.1 compiler should only process the module given. If this option is not specified, all modules in the ASN.1 file are processed. DEFINITIONS FILE
The definitions file is really a Tcl script but follows traditional rules for Shell like configuration files. That is # denotes the beginning of a comment. Definitions are line oriented. The definitions files usually consists of a series of variable assignments of the form: set name value Available variables are: default-prefix Sets prefix for names in the produced output. The value consists of three tokens: C function prefix, C typedef prefix and preprocessor prefix respectively. prefix(module) This value sets prefix values for module module. The value has same form as default-prefix. filename(module) Specifies filename for C/header file for module module. init(module,h) Code fragment to be put in first part of public header for module module. body(module,h) Code fragment to be put in last part of public header for module module (trailer). init(module,c) Code fragment to be put in first part of C based encoder/decoder for module module. body(module,c) Code fragment to be put in last part of C based encoder/decoder for module module (trailer). map(module,name) Maps ASN.1 type in module module of name to value. membermap(module,name,member) Maps member member in SEQUENCE/CHOICE of name in module module to value. The value consists of one or two tokens. First token is name of C preprocessor part. Second token is resulting C member name. If second token is omitted the value (one token) is both preprocessor part and C struct,union. unionmap(module,name,member) Maps member member in CHOICE of name in module module to value. Value consists of to or three tokens. The first token is name of the integer in the union that is used as selector for the union itself. The second token is name of the union. The third token overrides the name of the CHOICE member; if omitted the member name is used. FILES
/usr/share/yaz/z39.50/z.tcl /usr/share/yaz/z39.50/*.asn SEE ALSO
yaz(7) Section "The ODR Module" in the YAZ manual. YAZ 4.2.30 04/16/2012 YAZ-ASNCOMP(1)

Check Out this Related Man Page

SIMPLE2ZOOM(1p) 					User Contributed Perl Documentation					   SIMPLE2ZOOM(1p)

NAME
simple2zoom - generic Swiss Army Server for proxying between IR standards SYNOPSIS
"simple2zoom" [ "-c" configFile ] [ "--" YAZ-options ] [ listener-address ... ] DESCRIPTION
"simple2zoom" provides a generic gateway between the Z39.50 and SRU/SRW Information Retrieval protocols. Because it relies on the "Net::Z3950::SimpleServer" and "ZOOM" modules for the server and client funcationality respectively, because both of these modules are based on the YAZ toolkit, and because YAZ transparently handles all three standard IR protocols (ANDI/NISO Z39.50, SRU and SRW), it can function as a gateway from any and to any of these protocols. However, its principle purpose is as a Z39.50 server that proxies requests through to a backend by acting as an SRU client. The following command-line options govern how the gateway functions: -c configFile Specifies that the named configFile should be used to configure the functionality of the gateway: if this option is not specified, then the file "client.xml" is used. The format of the configuration file is described separately in "Net::Z3950::Simple2ZOOM::Config", and a sample configuration file, "test.xml", is supplied in the "etc" directory of the distribution. -- Indicates the end of "simple2zoom"-specific options. This is required if YAZ options are to be specified, so that "simple2zoom" doesn't try to interpret them itself. YAZ-options Command-line arguments subsequent to the "--" option are interpreted by the YAZ backend server as described at http://www.indexdata.dk/yaz/doc/server.invocation.tkl These options provide the means to control many aspects of the gateway's functioning: for example, whether the server forks a new process for each client or runs a single process using "select()"; how (if at all) to interpret incoming SRU requests; whether and how to log protocol packets for debugging. listener-address One or more YAZ-style listener addresses may be specified, and the server will accept connections on those addresses: for example, @:9998, "unix:/tmp/somesocket" or "ssl:myhost.com:210". If no explicit listener addresses are provided, the server listens on port 9999. SEE ALSO
The "Net::Z3950::Simple2ZOOM" module. The "Net::Z3950::Simple2ZOOM::Config" manual for the configuration-file format. The "Net::Z3950::SimpleServer" module. The "ZOOM" module (in the "Net::Z3950::ZOOM" distribution). AUTHOR
Sebastian Hammer <quinn@miketaylor.org.uk> Mike Taylor <mike@indexdata.com> The development of "simple2zoom", and the "Net::Z3950::Simple2ZOOM" library that provides its functionality, has been partially sponsored by the National Library of Australia, whose contribution we gratefully acknowledge. COPYRIGHT AND LICENCE
Copyright (C) 2007 by Index Data. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.12.4 2007-09-07 SIMPLE2ZOOM(1p)
Man Page