//
// miop.idl,v 1.3 2004/04/01 05:16:46 bala Exp
//
// ================================================================
//
// = LIBRARY
//   TAO_PortableGroup
//
// = FILENAME
//   miop.pidl
//
// = DESCRIPTION
//
//   This file contains MIOP packet and profile information from
//   the MIOP specification.
//
// ================================================================

#ifndef MIOP_IDL
#define MIOP_IDL

#include "tao/IOP.pidl"
#include "tao/GIOP.pidl"

#pragma prefix "omg.org"

module MIOP
{
  typedef sequence <octet, 252> UniqueId;

  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;
  };

  typedef GIOP::Version Version;

  typedef string Address;

  struct UIPMC_ProfileBody
  {
    Version           miop_version;
    Address           the_address;
    short             the_port;
    sequence<IOP::TaggedComponent> components;
  };
};

#endif
