ASN.1
Previous: Listing of Universal Tags
Up: ASN.1 Next:
About this document
company ::= SET
{
name [0] IA5String,
zipcode [1] IA5String,
CitationType INTEGER,
other ANY DEFINED BY CitationType
} where the INTEGER value of CitationType can be 0 = INTEGER, 1 = REAL, or
2 = BOOLEAN, which of the following values are valid? Assume tagging has been
done accurately.
a. HouseType ::= INTEGER b. HouseType ::= ENUMERATED
( {
Ranch (1) Ranch (1)
SplitLevel (2) SplitLevel (2)
Colonial (3) Colonial (3)
TownHome (4) TownHome (4)
} }
a) airport ::= SEQUENCE
{
origin [0] IA5String,
stop [1] IA5String OPTIONAL,
destination [2] IA5String
}
b) airport ::= SET
{
origin [0] IA5String,
stop [1] IA5String,
destination [2] IA5String
}
c) airport ::= ENUMERATED
{
origin [o],
stop [s],
destination [d]
}
d) airport_list ::= airport
( WITH COMPONENTS
{
origin [0],
stop [1],
destination [2]
}
)
a) struct calendar birthday[2] =
{ { {`O', `C', `T'}, 2, 1948 }, { {`A', `P', `R'}, 14, 1955 } }
where "calendar" is a structure defined by
struct calendar
{
char name[3];
int date:
int year;
};
b) struct time depart_time, arrive_time;
where "time" is a structure defined by
struct time
{
int hour;
int minute;
int second;
};
c) char array[7] = "NETWORK"
d) struct entry
{
char *word;
int *page_number;
} index[50] =
{ {"ARPANET", 105}, {"ASN.1", 328} };
50
/ \
/ \
42 60
/ \ /
30 47 58
\
25
Previous: Summary Up: ASN.1 Next: About this document
| This site was developed from: Computer Networks and Open Systems An Application Development Perspective by Lillian N. Cassel Richard H. Austing Jones & Bartlett Publisher ISBN 0-7637-1122-5 |
This site is hosted by: ![]() Real World ASN.1 and XML Solutions |