You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gn...@apache.org on 2014/06/04 20:37:26 UTC

git commit: [SSHD-315] Provide access to the IoSession from Session

Repository: mina-sshd
Updated Branches:
  refs/heads/master aca9f5349 -> fff695ecf


[SSHD-315] Provide access to the IoSession from Session

Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/fff695ec
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/fff695ec
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/fff695ec

Branch: refs/heads/master
Commit: fff695ecf9c9f2d80790502b98ddc760040a74ee
Parents: aca9f53
Author: Guillaume Nodet <gn...@apache.org>
Authored: Wed Jun 4 20:37:15 2014 +0200
Committer: Guillaume Nodet <gn...@apache.org>
Committed: Wed Jun 4 20:37:15 2014 +0200

----------------------------------------------------------------------
 sshd-core/src/main/java/org/apache/sshd/common/Session.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/fff695ec/sshd-core/src/main/java/org/apache/sshd/common/Session.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/Session.java b/sshd-core/src/main/java/org/apache/sshd/common/Session.java
index 042bccd..47ad180 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/Session.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/Session.java
@@ -21,6 +21,7 @@ package org.apache.sshd.common;
 import java.io.IOException;
 
 import org.apache.sshd.common.future.SshFuture;
+import org.apache.sshd.common.io.IoSession;
 import org.apache.sshd.common.io.IoWriteFuture;
 import org.apache.sshd.common.util.Buffer;
 
@@ -166,6 +167,11 @@ public interface Session extends Closeable {
     <T extends Service> T getService(Class<T> clazz);
 
     /**
+     * Returns the IoSession associated to this ssh session
+     */
+    IoSession getIoSession();
+
+    /**
      * Type safe key for storage within the user attributes of {@link org.apache.sshd.common.session.AbstractSession}.
      * Typically it is used as a static variable that is shared between the producer
      * and the consumer. To further restrict access the setting or getting it from