Examples of send()


Examples of com.baasbox.service.push.providers.IPushServer.send()

        i++;
      }

      if(androidToken.size()>0) {
        for(List<String> thousandUsersAndroid: Lists.partition(androidToken,1000)){ //needed for the GCM sending limit
          withError[i]=gcmServer.send(message, thousandUsersAndroid, bodyJson);
        }
        i++;
      }

    }
View Full Code Here

Examples of com.barchart.udt.SocketUDT.send()

      try {
        if (isBlocking) {
          begin(); // JDK contract for NIO blocking calls
        }
        if (buffer.isDirect()) {
          sizeSent = socket.send(buffer);
        } else {
          assert buffer.hasArray();
          byte[] array = buffer.array();
          int position = buffer.position();
          int limit = buffer.limit();
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.send()

      }
      MessageBuilder builder = new MessageBuilder();
      builder.green("There are ").yellow(count).green(" trains on this server (of which ");
      builder.yellow(moving).green(" are moving)");
      builder.newLine().green("There are ").yellow(minecartCount).green(" minecart entities");
      builder.send(sender);
      // Show additional information about owned trains to players
      if (sender instanceof Player) {
        StringBuilder statement = new StringBuilder();
        for (int i = 1; i < args.length; i++) {
          if (i > 1) {
View Full Code Here

Examples of com.bergerkiller.bukkit.common.scoreboards.CommonTeam.send()

    CommonPlugin.getInstance().getPacketHandler().onPlayerJoin(player);

    // Scoreboard team init
    CommonTeam team = CommonScoreboard.get(player).getTeam();
    if (!team.shouldSendToAll()) {
      team.send(player); //Send player team to player
    }
    for (CommonTeam ct : CommonScoreboard.getTeams()) {
      if(ct.shouldSendToAll()) {
        ct.send(player);
      }
View Full Code Here

Examples of com.bj58.spat.gaea.client.communication.socket.CSocket.send()

        try {
            try {
              socket = this.scoketpool.getSocket();
                byte[] data = p.toBytes(socket.isRights(),socket.getDESKey());
                socket.registerRec(p.getSessionID());
                socket.send(data)
            } catch (Throwable ex) {
                logger.error("Server get socket Exception", ex);
                throw ex;
            }finally {
              if(socket != null){
View Full Code Here

Examples of com.calclab.emite.im.chat.PairChat.send()

      @Override
      public void onChange(final ChangeEvent event) {
        final String msg = input.getText();
        log("Message sent: " + msg);
        final PairChat chat = chatManager.openChat(uri(user));
        chat.send(new Message(msg));
        input.setText("");
      }
    });

    final PairChat chat = chatManager.openChat(uri(user));
View Full Code Here

Examples of com.calclab.emite.xep.muc.client.Room.send()

        final Message message = event.getMessage();
        display.print(("RECEIVED: " + message.getBody()), Style.received);
        pongs++;
        if (room.isUserMessage(message) && !room.isComingFromMe(message)) {
          final String body = "Pong " + pongs + " [" + System.currentTimeMillis() + "]";
          room.send(new Message(body));
          display.print("SENT: " + body, Style.sent);
        }
      }
    });
  }
View Full Code Here

Examples of com.calexo.openhra.serveur.Javixo4OpenHRA.send()

        avis.setMessage(cliId + ";;;" + clientValue.getLogin());
        avis.setModele(CFG_ModeleOpenHRANewClient);
        avis.setSignature(CFG_MSWSignature);

        String ret = avis.send();
        logger.debug("Javixo : " + ret);
      }
    } else {
      cliLoc.setCreated(Boolean.FALSE);
      cliLoc.setUpdated(Boolean.TRUE);
View Full Code Here

Examples of com.chenshuo.muduo.example.multiplexer.MockClient.send()

        client.setId(connId);

        assertEquals("UP", m.group(2));

        // step 2
        ChannelBuffer buf = client.send("hello");
        de = (DataEvent) queue.take();
        assertEquals(EventSource.kBackend, de.source);
        assertEquals(connId, de.whichClient);
        assertEquals(buf, de.data);
        System.out.println(de.data.toString(Charset.defaultCharset()));
View Full Code Here

Examples of com.cloudbreakers.producers.SoProducer.send()

                        sb.append(line);
                    }
                    String answer = sb.toString();
                    System.out.println(Long.toString(Thread.currentThread().getId()));
                    answer = postProcessing(answer);
                    producer.send("car", answer);

                    //System.out.println(answer);

                }
            } else {
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.