Package org.omg.MIOP

Examples of org.omg.MIOP.PacketHeader_1_0


      {
         numberOfFullPackets--;
         lastPacketSize = packetDataMaxSize;
      }

      PacketHeader_1_0 header;

      // Send all the packets except the last
      //
      int i = 0; // is out because it will be used later
      for (; i < numberOfFullPackets; i++)
      {
         header = new PacketHeader_1_0 (MulticastUtil.MAGIC, MulticastUtil.HDR_VERSION,
                  MulticastUtil.BIG_ENDIAN, packetDataMaxSize, i, numberOfPackets,
                  messageId);

         sendMIOPPacket (header, data, offset + i * packetDataMaxSize,
                         packetDataMaxSize);
      }

      // now the last ...
      header = new PacketHeader_1_0 (MulticastUtil.MAGIC, MulticastUtil.HDR_VERSION,
               (byte)(MulticastUtil.BIG_ENDIAN | MulticastUtil.STOP_FLAG), lastPacketSize, i,
               numberOfPackets, messageId);

      sendMIOPPacket (header, data, offset + i * packetDataMaxSize, lastPacketSize);
   }
View Full Code Here

TOP

Related Classes of org.omg.MIOP.PacketHeader_1_0

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.