Package com.sshtools.j2ssh.util

Examples of com.sshtools.j2ssh.util.State


     * @return true if the client is connected, false otherwise
     *
     * @since 0.2.0
     */
    public boolean isConnected() {
        State state = (transport == null) ? null : transport.getState();
        int value = (state == null) ? TransportProtocolState.DISCONNECTED
                                    : state.getValue();

        return ((value == TransportProtocolState.CONNECTED) ||
        (value == TransportProtocolState.PERFORMING_KEYEXCHANGE));
    }
View Full Code Here


     * @return true if the client is connected, false otherwise
     *
     * @since 0.2.0
     */
    public boolean isConnected() {
        State state = (transport == null) ? null : transport.getState();
        int value = (state == null) ? TransportProtocolState.DISCONNECTED
                                    : state.getValue();

        return ((value == TransportProtocolState.CONNECTED) ||
        (value == TransportProtocolState.PERFORMING_KEYEXCHANGE));
    }
View Full Code Here

TOP

Related Classes of com.sshtools.j2ssh.util.State

Copyright © 2018 www.massapicom. 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.