Examples of DisconnectReason


Examples of net.schmizz.sshj.common.DisconnectReason

    }

    private void gotDisconnect(SSHPacket buf)
            throws TransportException {
        try {
            final DisconnectReason code = DisconnectReason.fromInt(buf.readUInt32AsInt());
            final String message = buf.readString();
            log.info("Received SSH_MSG_DISCONNECT (reason={}, msg={})", code, message);
            throw new TransportException(code, "Disconnected; server said: " + message);
        } catch (Buffer.BufferException be) {
            throw new TransportException(be);
View Full Code Here

Examples of net.schmizz.sshj.common.DisconnectReason

    }

    private void gotDisconnect(SSHPacket buf)
            throws TransportException {
        try {
            final DisconnectReason code = DisconnectReason.fromInt(buf.readUInt32AsInt());
            final String message = buf.readString();
            log.info("Received SSH_MSG_DISCONNECT (reason={}, msg={})", code, message);
            throw new TransportException(code, "Disconnected; server said: " + message);
        } catch (Buffer.BufferException be) {
            throw new TransportException(be);
View Full Code Here

Examples of net.socialgamer.cah.Constants.DisconnectReason

    final Map<User, DisconnectReason> removedUsers = new HashMap<User, DisconnectReason>();
    synchronized (users) {
      final Iterator<User> iterator = users.values().iterator();
      while (iterator.hasNext()) {
        final User u = iterator.next();
        DisconnectReason reason = null;
        if (System.nanoTime() - u.getLastHeardFrom() > PING_TIMEOUT) {
          reason = DisconnectReason.PING_TIMEOUT;
        }
        else if (!u.isAdmin() && System.nanoTime() - u.getLastUserAction() > IDLE_TIMEOUT) {
          reason = DisconnectReason.IDLE_TIMEOUT;
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.