Examples of receive()


Examples of com.sun.jini.test.spec.jeri.mux.util.AcknowledgementMessage.receive()

        dm.send(os);
        //Verify that a properly formatted acknowledgement message is
        //received
        AcknowledgementMessage am = new AcknowledgementMessage();
        try {
            am.receive(is,getTimeout());
        } catch (ProtocolException e) {
            e.printStackTrace();
            throw new TestException(e.getMessage(),e);
        }
        //Verify that the contents of the server message were received

Examples of com.sun.jini.test.spec.jeri.mux.util.ClientConnectionHeader.receive()

        //Verify that a properly formatted ClientConnectionHeader is
        //received
        ClientConnectionHeader cHeader =
            new ClientConnectionHeader();
        try {
            cHeader.receive(is,getTimeout());
        } catch (ProtocolException e) {
            e.printStackTrace();
            throw new TestException(e.getMessage(),e);
        }
        //Send a ServerConnectionHeader with a server inbound ration

Examples of com.sun.jini.test.spec.jeri.mux.util.DataMessage.receive()

        ServerConnectionHeader sHeader = new ServerConnectionHeader();
        sHeader.setRation((short)0x0001).send(os);
        int receivedBytes = 0;
        long stopTime = System.currentTimeMillis() + getTimeout()*5;
        DataMessage dm = new DataMessage().suppressFormatCheck();
        dm.receive(is,getTimeout());
        receivedBytes += dm.getSize();
        //Verify that no more that 256 bytes are received
        if (dm.getSize()>256) {
            throw new TestException("More than 256 bytes"
                + " were sent");

Examples of com.sun.jini.test.spec.jeri.mux.util.PingAckMessage.receive()

        s = new Socket(getHost(),getPort());
        is = s.getInputStream();
        os = s.getOutputStream();
        PingAckMessage pam = new PingAckMessage().setCookie((short)0x5544);
        try {
            pam.receive(is,getTimeout());
        } catch (ProtocolException e) {
            e.printStackTrace();
            throw new TestException(e.getMessage(),e);
        }
    }

Examples of com.sun.jini.test.spec.jeri.mux.util.ServerConnectionHeader.receive()

        ClientConnectionHeader cHeader = new ClientConnectionHeader();
        cHeader.send(os);
        //Receive ServerConnection header and verify format
        ServerConnectionHeader sHeader = new ServerConnectionHeader();
        try {
            sHeader.receive(is,getTimeout());
        } catch (ProtocolException e) {
            e.printStackTrace();
            throw new TestException(e.getMessage(),e);
        }
        //Make a remote call that returns something

Examples of com.sun.nio.sctp.SctpChannel.receive()

        SctpChannel ch = javaChannel();
        ByteBuf buffer = alloc().directBuffer(config().getReceiveBufferSize());
        boolean free = true;
        try {
            ByteBuffer data = buffer.nioBuffer(buffer.writerIndex(), buffer.writableBytes());
            MessageInfo messageInfo = ch.receive(data, null, notificationHandler);
            if (messageInfo == null) {
                return 0;
            }

            data.flip();

Examples of com.svanloon.game.wizard.network.MessageReceiver.receive()

    // estatablish connection with server
    MessageReceiver mr2 = null;
    Message message;
    try {
      mr2 = new MessageReceiver(ip, initialConnectionPort);
      message = mr2.receive();
      Message response = new Message(MessageType.GET_NAME);
      response.addMsgParam(new MessageParam(MessageParamConstants.PLAYER_NAME, name));
      mr2.sendMessage(response);
      mr2.close();
    } catch (UnknownHostException e2) {

Examples of de.danet.an.workflow.api.EventSubscriber.receive()

  assertTrue(process!=null);
  process.start ();

  WfAuditEvent e = null;
  while (true) {
            e = subs.receive(5000);
            assertTrue ("Timeout receiving event", e != null);
      if (e.eventType().equals (WfAuditEvent.PROCESS_STATE_CHANGED)
    && e.processKey().equals (procKey)
    && ((WfStateAuditEvent)e).newState().startsWith ("closed")) {
    break;

Examples of dijjer.io.xfer.BlockReceiver.receive()

        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    }).start();
    br2.receive();
  }
}

Examples of fi.luomus.commons.kirjekyyhky.KirjekyyhkyAPIClient.receive()

    try {
      api = new KirjekyyhkyAPIClientImple("http://kirjekyyhky.uri.tähän.fi", "username", "password", "mySystemId");

      api.getCount();
      api.getForms();
      api.receive("1231");
      api.send(new File("new prefilled <form-data> .xml"), new File("optinally a prefilled PDF file"));

      FormData formData = api.get("2525");
      for (LogEntry e : formData.getLogEntries()) {
        // jotain
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.