Skip to main content

rustorb_giop/
lib.rs

1//! GIOP/IIOP message types, IOR and corbaloc handling.
2//!
3//! Accepts GIOP 1.0 to 1.2 and sends GIOP 1.2.
4//!
5//! - [`MessageHeader`] parses and writes the 12-byte GIOP header.
6//! - [`decode_message`] turns one complete message into a [`Message`] whose
7//!   body can be read with a CDR decoder that keeps the message alignment.
8//! - [`MessageEncoder`] writes a message header and lets the caller append
9//!   the body; it patches the message size when finished. Replies use the
10//!   version of the request, so every version can be written.
11//! - [`FragmentAssembler`] joins GIOP 1.1/1.2 fragments into one message,
12//!   keeping the alignment of each fragment.
13//! - [`Ior`] reads and writes stringified IORs; [`IiopProfile`] interprets
14//!   IIOP 1.0 to 1.2 profile bodies and their [`TaggedComponent`]s, with
15//!   typed access to the ORB type, code sets and alternate addresses.
16//! - [`Corbaloc`], [`CorbaName`] and [`ObjectUrl`] parse and write
17//!   `corbaloc:` and `corbaname:` URLs.
18
19mod component;
20mod corbaloc;
21mod error;
22mod fragment;
23mod header;
24mod iiop;
25mod ior;
26mod message;
27mod service_context;
28mod writer;
29
30pub use component::{
31    AlternateIiopAddress, CodeSetComponent, CodeSetComponentInfo, SslSecTrans, TaggedComponent,
32    association_options, component_tag, orb_type, orb_type_component,
33};
34pub use corbaloc::{
35    CorbaName, Corbaloc, DEFAULT_CORBALOC_PORT, DEFAULT_CORBANAME_KEY, IiopAddr, ObjAddr, ObjectUrl,
36};
37pub use error::{Error, Result};
38pub use fragment::{AssembledMessage, FragmentAssembler};
39pub use header::{MessageHeader, MsgType, Version};
40pub use iiop::IiopProfile;
41pub use ior::{Ior, TAG_INTERNET_IOP, TAG_MULTIPLE_COMPONENTS, TaggedProfile};
42pub use message::{
43    AddressingDisposition, Body, CancelRequestHeader, CompletionStatus, FragmentHeader,
44    LocateReplyHeader, LocateRequestHeader, LocateStatus, Message, ReplyHeader, ReplyStatus,
45    RequestHeader, SystemExceptionBody, TargetAddress, decode_message, response_flags,
46};
47pub use service_context::{CodeSetContext, ServiceContext, code_set, service_id};
48pub use writer::{MessageEncoder, OutMessage};