Examples of Packet


Examples of com.sun.messaging.jmq.io.Packet

    }
  }
 
  public void readWork(DataInputStream dis) throws IOException,
      BrokerException {
    message = new Packet(false);
    message.generateTimestamp(false);
    message.generateSequenceNumber(false);
    message.readPacket(dis);

    int numStoredInterests = dis.readInt();
View Full Code Here

Examples of com.sun.xml.internal.ws.api.message.Packet

     * @param codec for encoding/decoding {@link Message}
     * @return decoded {@link Packet}
     * @throws IOException if an i/o error happens while encoding/decoding
     */
    protected Packet decodePacket(T connection, @NotNull Codec codec) throws IOException {
        Packet packet = new Packet();
        packet.acceptableMimeTypes = getAcceptableMimeTypes(connection);
        packet.addSatellite(getPropertySet(connection));
        packet.transportBackChannel = getTransportBackChannel(connection);
        return packet;
    }
View Full Code Here

Examples of com.sun.xml.ws.api.message.Packet

            }
        } catch (Exception e) {
            // temporary - need to send back SOAP fault message
        }

  Packet pipeResponse = next.process(request);
      
        //Make the response packet available in the MessageContext
        ((SOAPMessageContextImpl)ctxt).setPacket(pipeResponse);
       
       
View Full Code Here

Examples of com.trendmicro.mist.util.Packet

                break;
            Utils.justSleep(500);
        }
        assertTrue(sess.isReady());

        Packet packet = new Packet();
        BufferedInputStream socketInput = new BufferedInputStream(socket.getInputStream());
        BufferedOutputStream socketOutput = new BufferedOutputStream(socket.getOutputStream());

        /**
         * Get a message and ack
         */
        brk.sendMessage(true, "foo.in", "foo".getBytes());
        BytesMessage msgin = brk.getBytesMessage(true, "foo.in");
        new OnMessageRunner(sess, msgin).start();
        packet.read(socketInput);
        MistMessage.MessageBlock mBlock = MistMessage.MessageBlock.newBuilder().mergeFrom(packet.getPayload()).build();
        assertEquals("queue:foo.in", mBlock.getId());
        assertEquals("foo", new String(mBlock.getMessage().toByteArray()));

        packet.setPayload(GateTalk.Response.newBuilder().setSuccess(true).build().toByteArray());
        packet.write(socketOutput);

        brk.stop();
    }
View Full Code Here

Examples of edu.byu.ece.rapidSmith.bitstreamTools.bitstream.Packet

  public static void printFDRIWrite(XilinxConfigurationSpecification spec, Iterator<Packet> pi,
      boolean printAllFrames) {
    boolean debug = false;
    while (pi.hasNext()) {
      Packet p = pi.next();
      if (debug) System.out.println(p.toString(false));
     
      if (p.getPacketType() == PacketType.ONE &&
        p.getOpcode() == PacketOpcode.WRITE &&
        p.getRegType() == RegisterType.FAR) {
       
        // Get FAR address
        int farAddress = p.getData().get(0);

        // Skip all following commands until the FDRI command arrives
        while (pi.hasNext() && !(p.getOpcode() == PacketOpcode.WRITE && p.getRegType() == RegisterType.FDRI)) {
          p = pi.next();
          if (debug) System.out.println("skip:"+p.toString(false));
        }
        // get the write command after the FDRI
        if (pi.hasNext()) {
          p = pi.next();
          if (debug) System.out.println("final write:"+p.toString(false));
          if (p.getOpcode() == PacketOpcode.WRITE) {
            // Print out command
            int words = p.getData().size();
            int frames = (words/spec.getFrameSize());
            if (!printAllFrames) {
              System.out.println("Initial FAR:"+ FrameAddressRegister.toString(spec,farAddress));
              System.out.println("FDRI words="+words + " (" + frames + " frames)");
              //System.out.println("Ending FAR:"+ FrameAddressRegister.toString(spec,farAddress+frames-1));
View Full Code Here

Examples of io.socket.implementor.packet.Packet

    }

    @Override
    public void emit(Runnable callback) {
        long id = socket.registerAcknowledgement(Acknowledgement.create(callback));
        Packet packet = Packet.builder()
                .data(payload)
                .id(id)
                .build();
        socket.sendPacket(packet);
    }
View Full Code Here

Examples of jNab.core.protocol.Packet

  {
      return;
  }

  // Playing recorded sound
  Packet p = new Packet();
  MessageBlock mb = new MessageBlock(600);
  mb.addPlayLocalSoundCommand("echo" + this.bunny.getSerialNumber() + ".wav");
  mb.addWaitPreviousEndCommand();
  p.addBlock(mb);
  p.addBlock(new PingIntervalBlock(1));
  this.bunny.addPacket(p);
    }
View Full Code Here

Examples of javaflow.components.api.Packet

        formatter = new PacketFormatter();
    }

    @Test
    public void contentAndIdIsIncluded(){
        Packet p = createPacket(1123l, "content abcd1234");
        when(p.getType()).thenReturn(Packet.PacketType.NORMAL);
        String result = formatter.format(p);
        Assert.assertTrue(result.contains("#1123: content abcd1234"),result);
    }
View Full Code Here

Examples of jbe.ejip.Packet

    net.loop();
  }
  private static void request() {
   
    if (!sent) {
      Packet p = Packet.getPacket(Packet.FREE, Packet.ALLOC, ipLink);
      if (p == null) {        // got no free buffer!
        return;
      }
      p.buf[Udp.DATA] = a;
      p.buf[Udp.DATA+1] = b;
View Full Code Here

Examples of jpcap.packet.Packet

    InetAddress pingAddr=InetAddress.getByName("www.microsoft.com");
    captor.setFilter("tcp and dst host "+pingAddr.getHostAddress(),true);
    byte[] gwmac=null;
    while(true){
      new URL("http://www.microsoft.com").openStream().close();
      Packet ping=captor.getPacket();
      if(ping==null){
        System.out.println("cannot obtain MAC address of default gateway.");
        System.exit(-1);
      }else if(Arrays.equals(((EthernetPacket)ping.datalink).dst_mac,device.mac_address))
          continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.