From 5322a39e6901a6bb19a735ae428c1fb10664cc1f Mon Sep 17 00:00:00 2001 From: fhunleth Date: Tue, 15 May 2001 17:24:52 +0000 Subject: *** empty log message *** --- TAO/tao/PortableGroup/miop.pidl | 51 +++++++++++------------------------------ 1 file changed, 13 insertions(+), 38 deletions(-) (limited to 'TAO/tao/PortableGroup/miop.pidl') diff --git a/TAO/tao/PortableGroup/miop.pidl b/TAO/tao/PortableGroup/miop.pidl index 862005a2a53..547b1f2c6ab 100644 --- a/TAO/tao/PortableGroup/miop.pidl +++ b/TAO/tao/PortableGroup/miop.pidl @@ -46,6 +46,7 @@ #define MIOP_IDL #include +#include #pragma prefix "omg.org" @@ -55,50 +56,24 @@ module MIOP struct PacketHeader_1_0 { - char magic[4]; - octet hdr_version; - octet flags; - unsigned short packet_length; - unsigned long packet_number; - unsigned long number_of_packets; - UniqueId Id; + char magic[4]; + octet hdr_version; + octet flags; + unsigned short packet_length; + unsigned long packet_number; + unsigned long number_of_packets; + UniqueId Id; }; - struct Version - { - octet major; - octet minor; - }; - - typedef short IPVersion; - - const IPVersion IPv4 = 0; - const IPVersion IPv6 = 1; - - struct UsingIpv4 - { - unsigned short port; - octet class_d_address[4]; // @@ Frank: changed to octet to avoid lots of casting - }; - - struct UsingIpv6 - { - unsigned long port; - string address; - }; + typedef GIOP::Version Version; - union IPEndpoints switch (IPVersion) - { - case IPv4: - UsingIpv4 ipv4_endpoints; - case IPv6: - UsingIpv6 ipv6_endpoints; - }; + typedef string Address; struct UIPMC_ProfileBody { - Version miop_version; - IPEndpoints endpoints; + Version miop_version; + Address the_address; + short the_port; sequence components; }; -- cgit v1.2.1