Searched defs:packet (Results 1 - 25 of 234) sorted by relevance

12345678910

/external/smack/src/org/jivesoftware/smackx/pubsub/packet/
H A DSyncPacketSend.java14 package org.jivesoftware.smackx.pubsub.packet;
22 import org.jivesoftware.smack.packet.Packet;
26 * methods for sending a packet to the server and waiting for the reply.
35 static public Packet getReply(Connection connection, Packet packet, long timeout) argument
38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
58 static public Packet getReply(Connection connection, Packet packet) argument
61 return getReply(connection, packet, SmackConfiguration.getPacketReplyTimeout());
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/
H A DPacketListener.java11 void read(String packet); argument
13 void write(String packet); argument
/external/smack/src/org/jivesoftware/smack/
H A DPacketInterceptor.java22 import org.jivesoftware.smack.packet.Packet;
30 * This allows event-style programming -- every time a new packet is found,
39 * Process the packet that is about to be sent to the server. The intercepted
40 * packet can be modified by the interceptor.<p>
42 * Interceptors are invoked using the same thread that requested the packet
46 * @param packet the packet to is going to be sent to the server.
48 public void interceptPacket(Packet packet); argument
H A DPacketListener.java23 import org.jivesoftware.smack.packet.Packet;
27 * This allows event-style programming -- every time a new packet is found,
38 * Process the next packet sent to this packet listener.<p>
44 * @param packet the packet to process.
46 public void processPacket(Packet packet); argument
/external/smack/src/org/jivesoftware/smack/filter/
H A DPacketFilter.java23 import org.jivesoftware.smack.packet.Packet;
27 * used when constructing packet listeners or collectors -- the filter defines
29 * packet processing.<p>
32 * for more complex packet filtering by using the
39 * // Use an anonymous inner class to define a packet filter that returns
40 * // all packets that have a packet ID of "RS145".
42 * public boolean accept(Packet packet) {
43 * return "RS145".equals(packet.getPacketID());
46 * // Create a new packet collector using the filter we created.
57 * Tests whether or not the specified packet shoul
62 accept(Packet packet) argument
[all...]
H A DFromContainsFilter.java23 import org.jivesoftware.smack.packet.Packet;
37 * @param from the from field value the packet must contain.
46 public boolean accept(Packet packet) { argument
47 if (packet.getFrom() == null) {
51 return packet.getFrom().toLowerCase().indexOf(from) != -1;
H A DFromMatchesFilter.java23 import org.jivesoftware.smack.packet.Packet;
30 * if the sender of the packet matches the specified resource.
45 * specified address is a full JID then the filter will only match if the sender of the packet
48 * @param address the from field value the packet must match. Could be a full or bare JID.
58 public boolean accept(Packet packet) { argument
59 if (packet.getFrom() == null) {
63 // Check if the bare JID of the sender of the packet matches the specified JID
64 return packet.getFrom().toLowerCase().startsWith(address);
67 // Check if the full JID of the sender of the packet matches the specified JID
68 return address.equals(packet
[all...]
H A DIQTypeFilter.java22 import org.jivesoftware.smack.packet.IQ;
23 import org.jivesoftware.smack.packet.Packet;
26 * A filter for IQ packet types. Returns true only if the packet is an IQ packet
43 * @see org.jivesoftware.smack.filter.PacketFilter#accept(org.jivesoftware.smack.packet.Packet)
45 public boolean accept(Packet packet) { argument
46 return (packet instanceof IQ && ((IQ) packet).getType().equals(type));
H A DMessageTypeFilter.java23 import org.jivesoftware.smack.packet.Message;
24 import org.jivesoftware.smack.packet.Packet;
29 * @see org.jivesoftware.smack.packet.Message.Type
45 public boolean accept(Packet packet) { argument
46 if (!(packet instanceof Message)) {
50 return ((Message) packet).getType().equals(this.type);
H A DNotFilter.java23 import org.jivesoftware.smack.packet.Packet;
26 * Implements the logical NOT operation on a packet filter. In other words, packets
47 public boolean accept(Packet packet) { argument
48 return !filter.accept(packet);
H A DPacketExtensionFilter.java23 import org.jivesoftware.smack.packet.Packet;
26 * Filters for packets with a particular type of packet extension.
36 * Creates a new packet extension filter. Packets will pass the filter if
37 * they have a packet extension that matches the specified element name
40 * @param elementName the XML element name of the packet extension.
41 * @param namespace the XML namespace of the packet extension.
49 * Creates a new packet extension filter. Packets will pass the filter if they have a packet
52 * @param namespace the XML namespace of the packet extension.
58 public boolean accept(Packet packet) { argument
[all...]
H A DPacketIDFilter.java23 import org.jivesoftware.smack.packet.Packet;
26 * Filters for packets with a particular packet ID.
35 * Creates a new packet ID filter using the specified packet ID.
37 * @param packetID the packet ID to filter for.
46 public boolean accept(Packet packet) { argument
47 return packetID.equals(packet.getPacketID());
H A DPacketTypeFilter.java23 import org.jivesoftware.smack.packet.Packet;
41 * Creates a new packet type filter that will filter for packets that are the
47 // Ensure the packet type is a sub-class of Packet.
54 public boolean accept(Packet packet) { argument
55 return packetType.isInstance(packet);
H A DThreadFilter.java23 import org.jivesoftware.smack.packet.Packet;
24 import org.jivesoftware.smack.packet.Message;
47 public boolean accept(Packet packet) { argument
48 return packet instanceof Message && thread.equals(((Message) packet).getThread());
H A DToContainsFilter.java23 import org.jivesoftware.smack.packet.Packet;
38 * @param to the to field value the packet must contain.
47 public boolean accept(Packet packet) { argument
48 if (packet.getTo() == null) {
52 return packet.getTo().toLowerCase().indexOf(to) != -1;
/external/smack/src/org/jivesoftware/smack/packet/
H A DSession.java21 package org.jivesoftware.smack.packet;
24 * IQ packet that will be sent to the server to establish a session.<p>
H A DPacketExtension.java21 package org.jivesoftware.smack.packet;
24 * Interface to represent packet extensions. A packet extension is an XML subdocument
27 * packet extensions include message events, message properties, and extra presence data.
28 * IQ packets cannot contain packet extensions.
53 * @return the packet extension as XML.
H A DStreamError.java20 package org.jivesoftware.smack.packet;
23 * Represents a stream error packet. Stream errors are unrecoverable errors where the server
/external/smack/src/org/jivesoftware/smack/util/
H A DSyncPacketSend.java22 import org.jivesoftware.smack.packet.Packet;
26 * methods for sending a packet to the server and waiting for the reply.
35 static public Packet getReply(Connection connection, Packet packet, long timeout) argument
38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
58 static public Packet getReply(Connection connection, Packet packet) argument
61 return getReply(connection, packet, SmackConfiguration.getPacketReplyTimeout());
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/
H A DClose.java14 package org.jivesoftware.smackx.bytestreams.ibb.packet;
16 import org.jivesoftware.smack.packet.IQ;
30 * Creates a new In-Band Bytestream close request packet.
/external/smack/src/org/jivesoftware/smackx/packet/
H A DPEPEvent.java21 package org.jivesoftware.smackx.packet;
23 import org.jivesoftware.smack.packet.PacketExtension;
60 * Returns the XML element name of the extension sub-packet root element.
63 * @return the XML element name of the packet extension.
70 * Returns the XML namespace of the extension sub-packet root element.
74 * @return the XML namespace of the packet extension.
H A DPEPPubSub.java21 package org.jivesoftware.smackx.packet;
23 import org.jivesoftware.smack.packet.IQ;
48 * Returns the XML element name of the extension sub-packet root element.
51 * @return the XML element name of the packet extension.
58 * Returns the XML namespace of the extension sub-packet root element.
62 * @return the XML namespace of the packet extension.
H A DPrivateData.java21 package org.jivesoftware.smackx.packet;
/external/smack/src/org/jivesoftware/smackx/ping/packet/
H A DPing.java17 package org.jivesoftware.smackx.ping.packet;
19 import org.jivesoftware.smack.packet.IQ;
H A DPong.java17 package org.jivesoftware.smackx.ping.packet;
19 import org.jivesoftware.smack.packet.IQ;
24 * Composes a Pong packet from a received ping packet. This basically swaps

Completed in 219 milliseconds

12345678910