Skip to main content

Crate rustorb_giop

Crate rustorb_giop 

Source
Expand description

GIOP/IIOP message types, IOR and corbaloc handling.

Accepts GIOP 1.0 to 1.2 and sends GIOP 1.2.

  • MessageHeader parses and writes the 12-byte GIOP header.
  • decode_message turns one complete message into a Message whose body can be read with a CDR decoder that keeps the message alignment.
  • MessageEncoder writes a message header and lets the caller append the body; it patches the message size when finished. Replies use the version of the request, so every version can be written.
  • FragmentAssembler joins GIOP 1.1/1.2 fragments into one message, keeping the alignment of each fragment.
  • Ior reads and writes stringified IORs; IiopProfile interprets IIOP 1.0 to 1.2 profile bodies and their TaggedComponents, with typed access to the ORB type, code sets and alternate addresses.
  • Corbaloc, CorbaName and ObjectUrl parse and write corbaloc: and corbaname: URLs.

Modules§

association_options
Security::AssociationOptions bits, as in the SslSecTrans component.
code_set
OSF registry ids of common code sets (CONV_FRAME::CodeSetId).
component_tag
Standard IOP::ComponentId values, and the omniORB specific ones.
orb_type
Values of the component_tag::ORB_TYPE component.
response_flags
Values of the GIOP 1.2 response_flags octet.
service_id
Standard IOP::ServiceId values.

Structs§

AlternateIiopAddress
The data of the component_tag::ALTERNATE_IIOP_ADDRESS component: one more address the object can be reached at.
AssembledMessage
A whole message returned by a FragmentAssembler.
Body
The body of a message: the bytes after the message header, kept with their offset in the message so that CDR alignment is preserved.
CancelRequestHeader
The header of a CancelRequest message.
CodeSetComponent
CONV_FRAME::CodeSetComponent: the native code set of one character type and the code sets it can convert to.
CodeSetComponentInfo
CONV_FRAME::CodeSetComponentInfo, the data of the component_tag::CODE_SETS component.
CodeSetContext
CONV_FRAME::CodeSetContext, the transmission code sets chosen by a client.
CorbaName
A corbaname: URL: a naming context given as a corbaloc location, and a stringified name to resolve in it.
Corbaloc
A corbaloc: URL: a list of addresses and an object key.
FragmentAssembler
Joins fragmented GIOP 1.1 and 1.2 messages.
FragmentHeader
The header of a Fragment message.
IiopAddr
An IIOP address in a corbaloc URL: [major.minor@]host[:port].
IiopProfile
IIOP::ProfileBody, the body of a TAG_INTERNET_IOP profile.
Ior
IOP::IOR, an interoperable object reference.
LocateReplyHeader
The header of a LocateReply message.
LocateRequestHeader
The header of a LocateRequest message.
MessageEncoder
Writes one GIOP message.
MessageHeader
The 12-byte header that starts every GIOP message.
OutMessage
A whole message to send: its bytes, with large octet sequences that were not copied in kept apart.
ReplyHeader
The header of a Reply message.
RequestHeader
The header of a Request message, in its GIOP 1.2 shape.
ServiceContext
IOP::ServiceContext, with the context data left as an encapsulation.
SslSecTrans
SSLIOP::SSL, the data of a component_tag::SSL_SEC_TRANS component: the port of the TLS endpoint at the host of the IIOP profile, and the association options of the target.
SystemExceptionBody
The body of a SYSTEM_EXCEPTION reply.
TaggedComponent
IOP::TaggedComponent, with the component data left as an encapsulation (or raw octets for the few components that are not).
TaggedProfile
IOP::TaggedProfile, with the profile body left as an encapsulation.
Version
A GIOP protocol version.

Enums§

AddressingDisposition
GIOP::AddressingDisposition, the kind of TargetAddress.
CompletionStatus
CORBA::CompletionStatus.
Error
Errors raised while reading or writing GIOP messages.
LocateStatus
GIOP::LocateStatusType.
Message
A decoded GIOP message.
MsgType
A GIOP message type.
ObjAddr
One address of a corbaloc URL.
ObjectUrl
Any string CORBA::ORB::string_to_object accepts.
ReplyStatus
GIOP::ReplyStatusType.
TargetAddress
GIOP::TargetAddress, the object a request is sent to.

Constants§

DEFAULT_CORBALOC_PORT
Port used when a corbaloc IIOP address has none.
DEFAULT_CORBANAME_KEY
Object key used by corbaname: URLs that have none.
TAG_INTERNET_IOP
IOP::TAG_INTERNET_IOP, an IIOP profile.
TAG_MULTIPLE_COMPONENTS
IOP::TAG_MULTIPLE_COMPONENTS.

Functions§

decode_message
Decodes one complete GIOP message: the header followed by exactly message_size bytes.
orb_type_component
Builds a component_tag::ORB_TYPE component.

Type Aliases§

Result
Result type of GIOP operations.