Examples of sendAndReceive()


Examples of ca.uhn.hl7v2.app.Initiator.sendAndReceive()

        Connection connection = connectionHub
                .attach("localhost", port, new PipeParser(), MinLowerLayerProtocol.class);

        // The initiator is used to transmit unsolicited messages
        Initiator initiator = connection.getInitiator();
        Message response = initiator.sendAndReceive(adt);

        String responseString = parser.encode(response);
        System.out.println("Received response:\n" + responseString);

        /*
 
View Full Code Here

Examples of com.aelitis.net.udp.uc.PRUDPPacketHandler.sendAndReceive()

           
            long  my_connection = connect_reply.getConnectionId();
           
            PRUDPPacketRequestScrape scrape_request = new PRUDPPacketRequestScrape( my_connection, hashes );
                   
            reply = handler.sendAndReceive( auth, scrape_request, destination );
           
            if ( reply.getAction() == PRUDPPacketTracker.ACT_REPLY_SCRAPE ){
   
              auth_ok  = true;
   
View Full Code Here

Examples of com.aelitis.net.udp.uc.PRUDPPacketHandler.sendAndReceive()

      for (int retry_loop=0;retry_loop<PRUDPPacketTracker.DEFAULT_RETRY_COUNT;retry_loop++){
     
        try{
          PRUDPPacket connect_request = new PRUDPPacketRequestConnect();
         
          PRUDPPacket reply = handler.sendAndReceive( auth, connect_request, destination );
         
          if ( reply.getAction() == PRUDPPacketTracker.ACT_REPLY_CONNECT ){
           
            PRUDPPacketReplyConnect connect_reply = (PRUDPPacketReplyConnect)reply;
           
View Full Code Here

Examples of com.aelitis.net.udp.uc.PRUDPPacketHandler.sendAndReceive()

          VersionCheckClientUDPRequest  request_packet = new VersionCheckClientUDPRequest( connection_id );

          request_packet.setPayload( data_to_send );

          VersionCheckClientUDPReply reply_packet = (VersionCheckClientUDPReply)packet_handler.sendAndReceive( null, request_packet, new InetSocketAddress( host, UDP_SERVER_PORT ), timeout );

          Map  reply = reply_packet.getPayload();

          preProcessReply( reply, v6 );
View Full Code Here

Examples of com.aelitis.net.udp.uc.PRUDPPacketHandler.sendAndReceive()

            request_packet.setPayload( data_to_send );

            listener.reportProgress( "Sending outbound packet and waiting for reply probe (timeout=" + timeout + ")" );
           
            NetworkAdminNATUDPReply reply_packet =
              (NetworkAdminNATUDPReply)packet_handler.sendAndReceive(
                  null,
                  request_packet,
                  new InetSocketAddress( UDP_SERVER_ADDRESS, UDP_SERVER_PORT ),
                  timeout,
                  PRUDPPacketHandler.PRIORITY_IMMEDIATE );
View Full Code Here

Examples of org.apache.vinci.transport.BaseClient.sendAndReceive()

          UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                  "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_vns_redirect__FINEST",
                  new Object[] { Thread.currentThread().getName(), publicVNSHost, publicVNSPort });
        }
        BaseClient client = new BaseClient(publicVNSHost, pvnsPort);
        return client.sendAndReceive(in);
      } else {
        if (UIMAFramework.getLogger().isLoggable(Level.WARNING)) {
          UIMAFramework.getLogger(this.getClass()).logrb(Level.WARNING, this.getClass().getName(),
                  "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
                  "UIMA_CPM_unknown_vns_command__WARNING",
View Full Code Here

Examples of org.apache.vinci.transport.BaseClient.sendAndReceive()

          UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                  "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_vns_redirect__FINEST",
                  new Object[] { Thread.currentThread().getName(), publicVNSHost, publicVNSPort });
        }
        BaseClient client = new BaseClient(publicVNSHost, pvnsPort);
        return client.sendAndReceive(in);
      } else {
        if (UIMAFramework.getLogger().isLoggable(Level.WARNING)) {
          UIMAFramework.getLogger(this.getClass()).logrb(Level.WARNING, this.getClass().getName(),
                  "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
                  "UIMA_CPM_unknown_vns_command__WARNING",
View Full Code Here

Examples of org.apache.vinci.transport.VinciClient.sendAndReceive()

  public Transportable sendAndReceive(Transportable in, String service_name,
          TransportableFactory factory) throws IOException, ServiceException, ServiceDownException,
          VNSException {
    VinciClient tempClient = new VinciClient(service_name, factory, this);
    try {
      return tempClient.sendAndReceive(in);
    } finally {
      tempClient.close();
    }
  }
View Full Code Here

Examples of org.apache.vinci.transport.VinciClient.sendAndReceive()

  public Transportable sendAndReceive(Transportable in, String service_name,
          TransportableFactory factory, int socket_timeout) throws IOException, ServiceException {
    VinciClient tempClient = new VinciClient(service_name, factory, this);
    tempClient.setSocketTimeout(socket_timeout);
    try {
      return tempClient.sendAndReceive(in);
    } finally {
      tempClient.close();
    }
  }
View Full Code Here

Examples of org.apache.vinci.transport.VinciClient.sendAndReceive()

          TransportableFactory factory, int socket_timeout, int connect_timeout)
          throws IOException, ServiceException {
    VinciClient tempClient = new VinciClient(service_name, factory, this, connect_timeout);
    tempClient.setSocketTimeout(socket_timeout);
    try {
      return tempClient.sendAndReceive(in);
    } finally {
      tempClient.close();
    }
  }
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.