Examples of processPacket()


Examples of org.jivesoftware.smack.PacketListener.processPacket()

        String base64Data = StringUtils.encodeBase64("Data");
        DataPacketExtension dpe = new DataPacketExtension(sessionID, 0, base64Data);
        Data data = new Data(dpe);

        // add data packets
        listener.processPacket(data);

        Thread closer = new Thread(new Runnable() {

            public void run() {
                try {
View Full Code Here

Examples of org.jivesoftware.smack.PacketListener.processPacket()

        for (Entry<PacketListener, PacketFilter> entry : copy.entrySet()) {
            PacketListener listener = entry.getKey();
            PacketFilter filter = entry.getValue();

            if (filter == null || filter.accept(packet)) {
                listener.processPacket(packet);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.jivesoftware.smack.PacketListener.processPacket()

        for (Entry<PacketListener, PacketFilter> entry : copy.entrySet()) {
            PacketListener listener = entry.getKey();
            PacketFilter filter = entry.getValue();

            if (filter == null || filter.accept(packet)) {
                listener.processPacket(packet);
                /*
                 * A stream can only be accepted once. Else an exception is
                 * thrown:
                 *
                 * java.lang.IllegalStateException: This IncomingTransferObject
View Full Code Here

Examples of org.jivesoftware.smackx.bytestreams.ibb.CloseListener.processPacket()

        Close close = new Close("unknownSessionId");
        close.setFrom(initiatorJID);
        close.setTo(targetJID);

        closeListener.processPacket(close);

        // wait because packet is processed in an extra thread
        Thread.sleep(200);

        // capture reply to the In-Band Bytestream close request
View Full Code Here

Examples of org.jivesoftware.smackx.bytestreams.ibb.DataListener.processPacket()

        DataPacketExtension dpe = new DataPacketExtension("unknownSessionID", 0, "Data");
        Data data = new Data(dpe);
        data.setFrom(initiatorJID);
        data.setTo(targetJID);

        dataListener.processPacket(data);

        // wait because packet is processed in an extra thread
        Thread.sleep(200);

        // capture reply to the In-Band Bytestream close request
View Full Code Here

Examples of org.jwebsocket.api.WebSocketEngine.processPacket()

            } else if (b == 0xff) {
              if (lStart >= 0) {
                if (pos <= lMaxFrameSize) {
                  RawPacket lPacket = new RawPacket(Arrays.copyOf(lBuff, pos));
                  try {
                    engine.processPacket(connector, lPacket);
                  } catch (Exception ex) {
                    mLog.error(ex.getClass().getSimpleName()
                        + " in processPacket of connector "
                        + connector.getClass().getSimpleName()
                        + ": " + ex.getMessage());
View Full Code Here

Examples of org.xmpp.component.Component.processPacket()

            return jid;
        }

        public void process(Packet packet) throws PacketException {
            Component component = getNextComponent();
            component.processPacket(packet);
        }
    }
}
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.