Examples of disconnect()


Examples of io.netty.channel.embedded.EmbeddedChannel.disconnect()

    public void shouldLogChannelDisconnect() throws Exception {
        appender.doAppend(matchesLog(".+DISCONNECT$"));
        replay(appender);
        EmbeddedChannel channel = new DisconnectingEmbeddedChannel(new LoggingHandler());
        channel.connect(new InetSocketAddress(80)).await();
        channel.disconnect().await();
        verify(appender);
    }

    @Test
    public void shouldLogChannelInactive() throws Exception {
View Full Code Here

Examples of it.baeyens.arduino.arduino.Serial.disconnect()

     */
    @Override
    public boolean PauzePort(String PortName) {
  Serial TheSerial = GetSerial(PortName);
  if (TheSerial != null) {
      TheSerial.disconnect();
      return true;
  }
  return false;
    }

View Full Code Here

Examples of it.freedomotic.serial.SerialConnectionProvider.disconnect()

            String msg = STX + "**PON" + ETX;
            System.out.println("pos eso 222");
            System.out.println("msg: " + msg);
            String output = usb.send(msg);
            System.out.println("Salida del puerto: " + output);
            usb.disconnect();
            //assertEquals(1, 1);
            // sudo socat pty,link=/dev/ttyUSB10,waitslave,ignoreeof tcp:192.168.1.5:54321 &
            // sudo socat tcp-l:54321,reuseaddr,fork file:/dev/ttyUSB0,nonblock,waitlock=/var/run/ttyUSB0.lock
            // sudo socat tcp-l:54321,reuseaddr,fork file:/dev/ttyUSB0,nonblock,waitlock=/var/run/ttyUSB0.lock
        } catch (Exception ex) {
View Full Code Here

Examples of it.hakvoort.neuroclient.NeuroServerConnection.disconnect()

      // send hello command
      connection.sendCommand(Command.HELLO);
    }
   
    // disconnect from NeuroServer
    connection.disconnect();
  }
 
  @Override
  public void receivedLine(String line) {
    // output incoming lines from NeuroServer
View Full Code Here

Examples of it.sauronsoftware.ftp4j.FTPClient.disconnect()

        client.connect(Shared.getConfig("ftpBackupAddr"), Integer.parseInt(Shared.getConfig("ftpPort")));
        client.login(Shared.getConfig("ftpBackupUser"), Shared.getConfig("ftpBackupPassword"));
        client.changeDirectory("/" + Shared.getConfig("storeName"));
        File f = new File(Constants.tmpDir + fileName);
        client.upload(f);
        client.disconnect(false);

    }

    static void sendSells(String myDay, ClosingDay cd , String ansMoney ) throws SQLException, IOException {
View Full Code Here

Examples of java.net.DatagramSocket.disconnect()

    catch (Exception e) {
      getLogger().warn("could not send message to the Job Scheduler, cause " + e.toString());
    }
    finally {
      if (udpSocket != null)
        udpSocket.disconnect();

    }
  }

  /**
 
View Full Code Here

Examples of java.net.HttpURLConnection.disconnect()

          if (monitor != null) {
            monitor.setMessage(mLocalizer.msg("Progressmessage.40", "Found {0} channels, downloading channel icons...", DataHydracontainers.length));
          }

          mLastGroupUpdate.put(hydraGroup, con.getLastModified());
          con.disconnect();

          ArrayList<Channel> loadedChannels = new ArrayList<Channel>();

          for (DataHydraChannelContainer container : DataHydracontainers) {
            initializeIconLoader(hydraGroup);
View Full Code Here

Examples of java.net.MulticastSocket.disconnect()

          InetAddress upnpAddress = getUPNPAddress();
          multicastSocket.leaveGroup(upnpAddress);
        } catch (IOException e) {
        }

        multicastSocket.disconnect();
        multicastSocket.close();
      }
    }
  }
View Full Code Here

Examples of java.nio.channels.DatagramChannel.disconnect()

        } catch (IOException e) {
            return DefaultConnectFuture.newFailedFuture(e);
        } finally {
            if (!initialized && ch != null) {
                try {
                    ch.disconnect();
                    ch.close();
                } catch (IOException e) {
                    ExceptionMonitor.getInstance().exceptionCaught(e);
                }
            }
View Full Code Here

Examples of javax.media.protocol.URLDataSource.disconnect()

   
    assertEquals(s.getStreams().length, 1);
    assertTrue(s.getStreams() != sts);
    assertTrue(s.getStreams()[0] != st);
   
    s.disconnect();
   
    // disconnect does not affect read.
    {
      final byte[] buf = new byte[1];
      final int res = st.read(buf, 0, buf.length);
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.