Examples of sendPacket()

  • com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.sendPacket()
    Send a Server->Client packet StatusUpdate to the L2PcInstance.

  • com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance.sendPacket()
  • com.l2jfrozen.loginserver.L2LoginClient.sendPacket()
  • it.hakvoort.neuroclient.agent.EEGAgent.sendPacket()
  • jpcap.JpcapSender.sendPacket()
    Sends a packet.

    If this JpcapSender instance was created by openDevice(), you need to set the Datalink layer's header (e.g., Ethernet header) of the packet.

    If this JpcapSender instance was created by openRawSocket(), you can only send IP packets, but you may not need to set the Datalink layer's header of the IP packets you want to send.
    Note: the implementation and behavior of a raw socket may vary in different OS. For example, in Windows 2000/XP, you need to manually set the datalink/IP headers of a packet. @param packet Packet to be sent

  • l2p.gameserver.model.L2Character.sendPacket()
  • l2p.gameserver.model.L2Playable.sendPacket()
  • l2p.gameserver.model.L2Player.sendPacket()
    Send a Server->Client packet StatusUpdate to the L2Player.

  • l2p.gameserver.network.L2GameClient.sendPacket()
  • lineage2.gameserver.model.Creature.sendPacket()
    Method sendPacket. @param mov IStaticPacket
  • lineage2.gameserver.model.GameObject.sendPacket()
    Method sendPacket. @param lsp L2LoginServerPacket
  • lineage2.gameserver.model.Playable.sendPacket()
    Method sendPacket. @param lsp L2LoginServerPacket
  • lineage2.gameserver.model.Player.sendPacket()
    Method sendPacket. @param p IStaticPacket
  • lineage2.loginserver.L2LoginClient.sendPacket()
    Method sendPacket. @param lsp L2LoginServerPacket
  • mods.railcraft.common.util.network.PacketEffect.sendPacket()
  • mods.railcraft.common.util.network.PacketGuiReturn.sendPacket()
  • net.sf.l2j.gameserver.model.L2Character.sendPacket()
    Not Implemented.

    Overriden in :

  • L2PcInstance


  • @param mov the mov
  • net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.sendPacket()
    Send a Server->Client packet StatusUpdate to the L2PcInstance. @param packet the packet
  • net.sf.l2j.loginserver.L2LoginClient.sendPacket()
  • org.getspout.spout.player.SpoutCraftPlayer.sendPacket()
  • org.getspout.spoutapi.player.SpoutPlayer.sendPacket()
    Sends a MCPacket to the client @param packet to send
  • org.jivesoftware.smack.Connection.sendPacket()
    Sends the specified packet to the server. @param packet the packet to send.
  • org.jivesoftware.smack.XMPPConnection.sendPacket()
  • org.pcap4j.core.PcapHandle.sendPacket()
    @param packet @throws PcapNativeException @throws NotOpenException @throws NullPointerException
  • org.thingml.bglib.BGAPITransport.sendPacket()

  • Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

      private boolean sendPacket(IQ packet) {
        XMPPConnection con = adminUser.getConnection();
        try {
          packet.setFrom(con.getUser());
          PacketCollector collector = con.createPacketCollector(new PacketIDFilter(packet.getPacketID()));
          con.sendPacket(packet);
          IQ response = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
          collector.cancel();
         
          if (response == null) {
            log.error("Error while trying to create/delete group at IM server. Response was null! packet type: "+packet.getClass());
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

          SessionCount response;
          try {
            IQ packet = new SessionCount();
            packet.setFrom(con.getUser());
            PacketCollector collector = con.createPacketCollector(new PacketIDFilter(packet.getPacketID()));
            con.sendPacket(packet);
            response = (SessionCount) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
            collector.cancel();
            if (response == null) {
              log.warn("Error while trying to count sessions at IM server. Response was null!");
              return sessionCount;
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

      private IQ sendPacket(IQ packet) {
        XMPPConnection con = adminUser.getConnection();
        try {
          packet.setFrom(con.getUser());
          PacketCollector collector = con.createPacketCollector(new PacketIDFilter(packet.getPacketID()));
          con.sendPacket(packet);
          IQ response = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
          collector.cancel();
         
          if (response == null) {
            log.error("Error while trying to get all sessions IM server. Response was null!");
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

          try {
            IQ packet = new PluginVersion();
            packet.setFrom(con.getUser());
            PacketCollector collector = con.createPacketCollector(new PacketIDFilter(packet.getPacketID()));
            //TODO:gs is sending packets over one connection thread save?
            con.sendPacket(packet);
            response = (PluginVersion) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
            collector.cancel();
            if (response == null) {
              log.error("Error while trying to get version at IM server. Response was null!");
              return version;
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

          XMPPConnection c = new XMPPConnection(connConfig);
         
            c.connect();
            c.login(username, passwd, resource);       
            Presence presence = new Presence(Presence.Type.available);
            c.sendPacket(presence);
           
            return c;
        }
       
      @Before public void setUp() throws Exception {
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

                    LOG.info("Logging in anonymously to XMPP on connection: " + connection);
                    connection.loginAnonymously();
                }

                // now lets send a presence
                connection.sendPacket(new Presence(Presence.Type.AVAILABLE));
            }
            return connection;
        }

        public boolean isSingleton() {
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

                if (to != null) {
                    Presence presence = new Presence(Presence.Type.subscribe);
                    presence.setFrom(connection.getUser());
                    String toEntity = to + "@vysper.org";
                    presence.setTo(toEntity);
                    connection.sendPacket(presence);

                    chat = connection.getChatManager().createChat(toEntity, new MessageListener() {
                        public void processMessage(Chat inchat, Message message) {
                            System.out.println("log received message: " + message.getBody());
                        }
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

                            System.out.println("log received message: " + message.getBody());
                        }
                    });
                }

                connection.sendPacket(new Presence(Presence.Type.available, "pommes", 1, Presence.Mode.available));

                Thread.sleep(1000);

                // query server version
                sendIQGetWithTimestamp(connection, new Version());
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

                //                chat.sendMessage("Hello " + to + " at " + new Date());
                                try { Thread.sleep((new Random().nextInt(15)+1)*1000 ); } catch (InterruptedException e) { ; }
                            }*/

                for (int i = 0; i < 10; i++) {
                    connection.sendPacket(new Presence(Presence.Type.available, "pommes", 1, Presence.Mode.available));
                    try {
                        Thread.sleep((new Random().nextInt(15) + 10) * 1000);
                    } catch (InterruptedException e) {
                        ;
                    }
    View Full Code Here

    Examples of org.jivesoftware.smack.XMPPConnection.sendPacket()

                    try {
                        Thread.sleep((new Random().nextInt(15) + 10) * 1000);
                    } catch (InterruptedException e) {
                        ;
                    }
                    connection.sendPacket(new Presence(Presence.Type.available, "nickes", 1, Presence.Mode.away));
                    try {
                        Thread.sleep((new Random().nextInt(15) + 10) * 1000);
                    } catch (InterruptedException e) {
                        ;
                    }
    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.