原帖由 play123456 于 2005-1-28 09:18 发表
遇到一份台湾话单协议格式是用这种语言描述的,不知道如何解码。在网上查到资料极少。如下:
http://fanqiang.chinaunix.net/a3/b5/20010525/150710.html
http://www.ctiforum.com/standard/standard/asn.1/asn ...
ASN.1 compiler for C
This ASN.1 compiler turns the formal ASN.1 specifications
into the C code. The compiler is shipped together with
conformant BER/DER/XER codecs. The X.509 and GSM TAP3
decoding examples are shipped as well.
ASN.1 to C or C++ or IDL compiler
Snacc is short for "Sample Neufeld ASN.1 to C Compiler" and ASN.1
stands for Abstract Syntax Notation One (ITU-T X.208/ISO 8824).
Snacc supports a subset of ASN.1 1988. If you need features of
ASN.1 1992 or later, snacc is not for you.
Given an ASN.1 source file(s) snacc can produce:
1. C routines for BER encoding, decoding, printing and freeing.
2. C++ routines for BER encoding, decoding, and printing.
3. A type table that can be used with C driver routines
for BER encoding, decoding, printing and freeing.
If you want to build snacc based applications, you want to install
the libsnacc-dev package, too. Your application will then depend on
the snacc libraries, you find in the libsnacc0c2 package.
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |