Examples of send()


Examples of org.apache.commons.net.CharGenUDPClient.send()

        // the packet is lost.
        client.setSoTimeout(5000);

        while (packets-- > 0)
        {
            client.send(address);

            try
            {
                data = client.receive();
            }
View Full Code Here

Examples of org.apache.commons.net.EchoUDPClient.send()

        client.setSoTimeout( 500 );

        for( int i = 0; i < 10; i ++ )
        {
            fillWriteBuffer( writeBuf, i );
            client.send( writeBuf, writeBuf.length, InetAddress
                    .getLocalHost(), port );

            assertEquals( readBuf.length, client.receive( readBuf,
                    readBuf.length ) );
            assertEquals( writeBuf, readBuf );
View Full Code Here

Examples of org.apache.commons.net.chargen.CharGenUDPClient.send()

        // the packet is lost.
        client.setSoTimeout(5000);

        while (packets-- > 0)
        {
            client.send(address);

            try
            {
                data = client.receive();
            }
View Full Code Here

Examples of org.apache.commons.net.echo.EchoUDPClient.send()

        // Remember, there are no guarantees about the ordering of returned
        // UDP packets, so there is a chance the output may be jumbled.
        while ((line = input.readLine()) != null)
        {
            data = line.getBytes();
            client.send(data, address);
            count = 0;
            do
            {
                try
                {
View Full Code Here

Examples of org.apache.cxf.transport.Conduit.send()

                    + "start=\"<soap.xml@xfire.codehaus.org>\"; "
                    + "start-info=\"text/xml; charset=utf-8\"; "
                    + "boundary=\"----=_Part_4_701508.1145579811786\"";

        m.put(Message.CONTENT_TYPE, ct);
        conduit.send(m);

        OutputStream os = m.getContent(OutputStream.class);
        InputStream is = getResourceAsStream("request");
        if (is == null) {
            throw new RuntimeException("Could not find resource " + "request");
View Full Code Here

Examples of org.apache.drill.exec.rpc.ResponseSender.send()

  public void flushResponses(){
    while(!q.isEmpty()){
      ResponseSender s = q.poll();
      if(s != null){
        s.send(DataRpcConfig.OK);
      }
    }

  }
}
View Full Code Here

Examples of org.apache.hadoop.hdfs.qjournal.client.HttpImageUploadChannel.send()

    HttpImageUploadChannel channel = new HttpImageUploadChannel(httpAddress,
        journalId, FAKE_NSINFO, txid, 0, -1);
    channel.start();

    ByteArrayOutputStream bos = genBos();
    channel.send(bos);
    assertTrue(channel.isDisabled());
  }

  /**
   * Generate ByteOutputStream with random content.
View Full Code Here

Examples of org.apache.hadoop.nfs.nfs3.response.NFS3Response.send()

      // Invalid procedure
      RpcAcceptedReply.voidReply(out, xid,
          RpcAcceptedReply.AcceptState.PROC_UNAVAIL);
    }
    if (response != null) {
      out = response.send(out, xid);
    }
    return out;
  }
 
  @Override
View Full Code Here

Examples of org.apache.hadoop.nfs.nfs3.response.WRITE3Response.send()

    int count = request.getCount();
    WriteStableHow stableHow = request.getStableHow();
    byte[] data = request.getData().array();
    if (data.length < count) {
      WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3ERR_INVAL);
      Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
      return;
    }

    FileHandle handle = request.getHandle();
    if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.harmony.xnet.provider.jsse.Finished.send()

        assertEquals("incorrect type", Handshake.FINISHED, message.getType());
        assertTrue("incorrect CertificateVerify", Arrays.equals(message
                .getData(), bytes));

        HandshakeIODataStream out = new HandshakeIODataStream();
        message.send(out);
        byte[] encoded = out.getData(1000);
        assertEquals("incorrect out data length", message.length(),
                encoded.length);

        HandshakeIODataStream in = new HandshakeIODataStream();
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.