aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/trilead/ssh2/ChannelCondition.java
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2015-07-24 16:13:51 -0700
committerKenny Root <kenny@the-b.org>2015-07-24 16:13:51 -0700
commitd3c4f49d68ba97f43aacbe86d4ece7546eee4f15 (patch)
tree6cfe6093f69737af10bc5437acc10942795f2b57 /app/src/main/java/com/trilead/ssh2/ChannelCondition.java
parent739337624a5e69221a998cf10b1fd34fcc5ecd2d (diff)
parent571d61b6b55bc3eb9540e17973d93cc15b22da23 (diff)
downloadconnectbot-d3c4f49d68ba97f43aacbe86d4ece7546eee4f15.tar.gz
connectbot-d3c4f49d68ba97f43aacbe86d4ece7546eee4f15.tar.bz2
connectbot-d3c4f49d68ba97f43aacbe86d4ece7546eee4f15.zip
Merge pull request #105 from kruton/master
Update to library-based build
Diffstat (limited to 'app/src/main/java/com/trilead/ssh2/ChannelCondition.java')
-rw-r--r--app/src/main/java/com/trilead/ssh2/ChannelCondition.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/app/src/main/java/com/trilead/ssh2/ChannelCondition.java b/app/src/main/java/com/trilead/ssh2/ChannelCondition.java
deleted file mode 100644
index df1ad50..0000000
--- a/app/src/main/java/com/trilead/ssh2/ChannelCondition.java
+++ /dev/null
@@ -1,61 +0,0 @@
-
-package com.trilead.ssh2;
-
-/**
- * Contains constants that can be used to specify what conditions to wait for on
- * a SSH-2 channel (e.g., represented by a {@link Session}).
- *
- * @see Session#waitForCondition(int, long)
- *
- * @author Christian Plattner, plattner@trilead.com
- * @version $Id: ChannelCondition.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
- */
-
-public abstract interface ChannelCondition
-{
- /**
- * A timeout has occurred, none of your requested conditions is fulfilled.
- * However, other conditions may be true - therefore, NEVER use the "=="
- * operator to test for this (or any other) condition. Always use
- * something like <code>((cond & ChannelCondition.CLOSED) != 0)</code>.
- */
- public static final int TIMEOUT = 1;
-
- /**
- * The underlying SSH-2 channel, however not necessarily the whole connection,
- * has been closed. This implies <code>EOF</code>. Note that there may still
- * be unread stdout or stderr data in the local window, i.e, <code>STDOUT_DATA</code>
- * or/and <code>STDERR_DATA</code> may be set at the same time.
- */
- public static final int CLOSED = 2;
-
- /**
- * There is stdout data available that is ready to be consumed.
- */
- public static final int STDOUT_DATA = 4;
-
- /**
- * There is stderr data available that is ready to be consumed.
- */
- public static final int STDERR_DATA = 8;
-
- /**
- * EOF on has been reached, no more _new_ stdout or stderr data will arrive
- * from the remote server. However, there may be unread stdout or stderr
- * data, i.e, <code>STDOUT_DATA</code> or/and <code>STDERR_DATA</code>
- * may be set at the same time.
- */
- public static final int EOF = 16;
-
- /**
- * The exit status of the remote process is available.
- * Some servers never send the exist status, or occasionally "forget" to do so.
- */
- public static final int EXIT_STATUS = 32;
-
- /**
- * The exit signal of the remote process is available.
- */
- public static final int EXIT_SIGNAL = 64;
-
-}