正在加载图片...
1. The Common Data Representation( CDr) definition 通用数据表示定义。它实际上是IDL数据类型在网上传输时的编码方案。它对所有IDL 数据类型的映射都作了规定 2. GIOP Message Formats. 它规定了 Client和 Server两个角色之间要传输的消息格式。主要包括 Request和 Reply 两种消息 个 Request消息有以下几部分组成 A GlOP message header A Request Header The Request body 相应的,一个 Reply消息则包括 A Reply He The Reply body GIOP1.1规定 GIOP message header格式如下: lI GIOP 1.1 struct MessageHeader-_1_1 I char magic [4] Version gloP version: octet flags; l/ GIOP 1.1 change unsigned long message size } Request Header格式如下 / GIOP 1.1 struct RequestHeader_11 i IOP. ServiceContextList service context: unsigned long request i boolean response expected octet reserved[3]; //Added in GIOP 1.1 sequence <octet object key; string operation Principal requesting_principal; Request Body则按CDR规定的方式编码,它主要对方法调用的参数进行编码,如方 double example (in short m, inout Principal p); 可表示成 struct example body short m; l/ leftmost in or inout parameter Principal p; lI. to the rightmost 3. GIOP Transport Assumptions5 1.The Common Data Representation (CDR) definition. 通用数据表示定义。它实际上是 IDL 数据类型在网上传输时的编码方案。它对所有 IDL 数据类型的映射都作了规定。 2.GIOP Message Formats. 它规定了 Client 和 Server 两个角色之间要传输的消息格式。主要包括 Request 和 Reply 两种消息。 一个 Request 消息有以下几部分组成: A GIOP message header A Request Header The Request Body 相应的,一个Reply消息则包括 A GIOP message header A Reply Header The Reply Body GIOP1.1规定 GIOP message header格式如下: // GIOP 1.1 struct MessageHeader_1_1 { char magic [4]; Version GIOP_version; octet flags; // GIOP 1.1 change octet message_type; unsigned long message_size; }; Request Header 格式如下: // GIOP 1.1 struct RequestHeader_1_1 { IOP::ServiceContextList service_context; unsigned long request_id; boolean response_expected; octet reserved[3]; // Added in GIOP 1.1 sequence <octet> object_key; string operation; Principal requesting_principal; }; Request Body 则按 CDR 规定的方式编码,它主要对方法调用的参数进行编码, 如方 法: double example (in short m, inout Principal p); 可表示成: struct example_body { short m; // leftmost in or inout parameter Principal p; // ... to the rightmost }; 3.GIOP Transport Assumptions:
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有