com.jcraft.jsch.ChannelX11 Class Reference

Inheritance diagram for com.jcraft.jsch.ChannelX11:
Inheritance graph
[legend]
Collaboration diagram for com.jcraft.jsch.ChannelX11:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void run ()
void connect () throws JSchException
 Opens the channel without any timeout.

Protected Attributes

byte[] type = Util.str2byte("foo")

Package Functions

 ChannelX11 ()
void write (byte[] foo, int s, int l) throws java.io.IOException
synchronized void setRecipient (int foo)
int getRecipient ()
void init () throws JSchException

Static Package Functions

static int revtable (byte foo)
static void setCookie (String foo)
static void setHost (String foo)
static void setPort (int foo)
static byte[] getFakedCookie (Session session)
static void removeFakedCookie (Session session)
static Channel getChannel (String type)
 Creates a new Channel of specified type.
static Channel getChannel (int id, Session session)
 Retrieves a channel from the channel pool.
static void del (Channel c)
 Removes a channel from the channel pool.

Package Attributes

int id
volatile int recipient = -1
volatile int lwsize_max = 0x100000
volatile int lwsize = lwsize_max
volatile int lmpsize = 0x4000
volatile long rwsize = 0
volatile int rmpsize = 0
IO io = null
Thread thread = null
volatile boolean eof_local = false
volatile boolean eof_remote = false
volatile boolean close = false
volatile boolean connected = false
volatile boolean open_confirmation = false
volatile int exitstatus = -1
volatile int reply = 0
volatile int connectTimeout = 0
int notifyme = 0

Static Package Attributes

static byte[] cookie = null
static final int SSH_MSG_CHANNEL_OPEN_CONFIRMATION = 91
static final int SSH_MSG_CHANNEL_OPEN_FAILURE = 92
static final int SSH_MSG_CHANNEL_WINDOW_ADJUST = 93
static final int SSH_OPEN_ADMINISTRATIVELY_PROHIBITED = 1
static final int SSH_OPEN_CONNECT_FAILED = 2
static final int SSH_OPEN_UNKNOWN_CHANNEL_TYPE = 3
static final int SSH_OPEN_RESOURCE_SHORTAGE = 4
static int index = 0

Private Member Functions

byte[] addCache (byte[] foo, int s, int l)

Static Private Member Functions

static boolean equals (byte[] foo, byte[] bar)

Private Attributes

boolean init = true
Socket socket = null
byte[] cache = new byte[0]

Static Private Attributes

static final int LOCAL_WINDOW_SIZE_MAX = 0x20000
static final int LOCAL_MAXIMUM_PACKET_SIZE = 0x4000
static final int TIMEOUT = 10*1000
static String host = "127.0.0.1"
static int port = 6000
static byte[] cookie_hex = null
static java.util.Hashtable faked_cookie_pool = new java.util.Hashtable()
static java.util.Hashtable faked_cookie_hex_pool = new java.util.Hashtable()
static byte[] table

Detailed Description

Definition at line 34 of file ChannelX11.java.


Constructor & Destructor Documentation

com.jcraft.jsch.ChannelX11.ChannelX11 (  )  [package]

Member Function Documentation

byte [] com.jcraft.jsch.ChannelX11.addCache ( byte[]  foo,
int  s,
int  l 
) [private]

Definition at line 181 of file ChannelX11.java.

References com.jcraft.jsch.ChannelX11.cache.

Referenced by com.jcraft.jsch.ChannelX11.write().

void com.jcraft.jsch.Channel.connect (  )  throws JSchException [inherited]

Opens the channel without any timeout.

This is equivalent to connect(0) if not overridden in subclasses.

Reimplemented in com.jcraft.jsch.ChannelDirectTCPIP.

Definition at line 174 of file Channel.java.

Referenced by edu.rice.cs.hpc.remote.tunnel.SSHManager.sendCommand().

static void com.jcraft.jsch.Channel.del ( Channel  c  )  [static, package, inherited]

Removes a channel from the channel pool.

Definition at line 116 of file Channel.java.

References com.jcraft.jsch.Channel.pool.

static boolean com.jcraft.jsch.ChannelX11.equals ( byte[]  foo,
byte[]  bar 
) [static, private]

Definition at line 266 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.write().

static Channel com.jcraft.jsch.Channel.getChannel ( int  id,
Session  session 
) [static, package, inherited]

Retrieves a channel from the channel pool.

Parameters:
id the session-specific identifier of the channel
session the session with which the channel is associated.

Definition at line 103 of file Channel.java.

References com.jcraft.jsch.Channel.id, com.jcraft.jsch.Channel.pool, and com.jcraft.jsch.Channel.session.

static Channel com.jcraft.jsch.Channel.getChannel ( String  type  )  [static, package, inherited]

Creates a new Channel of specified type.

This factory method is used by Session#openChannel to create channels.

Definition at line 67 of file Channel.java.

static byte [] com.jcraft.jsch.ChannelX11.getFakedCookie ( Session  session  )  [static, package]
int com.jcraft.jsch.Channel.getRecipient (  )  [package, inherited]
void com.jcraft.jsch.Channel.init (  )  throws JSchException [package, inherited]
static void com.jcraft.jsch.ChannelX11.removeFakedCookie ( Session  session  )  [static, package]
static int com.jcraft.jsch.ChannelX11.revtable ( byte  foo  )  [static, package]

Definition at line 57 of file ChannelX11.java.

References com.jcraft.jsch.ChannelX11.table.

Referenced by com.jcraft.jsch.ChannelX11.setCookie().

void com.jcraft.jsch.ChannelX11.run (  ) 
static void com.jcraft.jsch.ChannelX11.setCookie ( String  foo  )  [static, package]
static void com.jcraft.jsch.ChannelX11.setHost ( String  foo  )  [static, package]

Definition at line 71 of file ChannelX11.java.

References com.jcraft.jsch.ChannelX11.host.

static void com.jcraft.jsch.ChannelX11.setPort ( int  foo  )  [static, package]

Definition at line 72 of file ChannelX11.java.

References com.jcraft.jsch.ChannelX11.port.

synchronized void com.jcraft.jsch.Channel.setRecipient ( int  foo  )  [package, inherited]
void com.jcraft.jsch.ChannelX11.write ( byte[]  foo,
int  s,
int  l 
) throws java.io.IOException [package]

Member Data Documentation

byte [] com.jcraft.jsch.ChannelX11.cache = new byte[0] [private]
volatile boolean com.jcraft.jsch.Channel.close = false [package, inherited]
volatile boolean com.jcraft.jsch.Channel.connected = false [package, inherited]
volatile int com.jcraft.jsch.Channel.connectTimeout = 0 [package, inherited]
byte [] com.jcraft.jsch.ChannelX11.cookie = null [static, package]
byte [] com.jcraft.jsch.ChannelX11.cookie_hex = null [static, private]

Definition at line 47 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.setCookie().

volatile boolean com.jcraft.jsch.Channel.eof_local = false [package, inherited]

Definition at line 135 of file Channel.java.

volatile boolean com.jcraft.jsch.Channel.eof_remote = false [package, inherited]

Definition at line 136 of file Channel.java.

volatile int com.jcraft.jsch.Channel.exitstatus = -1 [package, inherited]

Definition at line 142 of file Channel.java.

Referenced by com.jcraft.jsch.PortWatcher.run().

java.util.Hashtable com.jcraft.jsch.ChannelX11.faked_cookie_hex_pool = new java.util.Hashtable() [static, private]
java.util.Hashtable com.jcraft.jsch.ChannelX11.faked_cookie_pool = new java.util.Hashtable() [static, private]
String com.jcraft.jsch.ChannelX11.host = "127.0.0.1" [static, private]
int com.jcraft.jsch.Channel.id [package, inherited]

Definition at line 122 of file Channel.java.

Referenced by com.jcraft.jsch.Channel.getChannel().

int com.jcraft.jsch.Channel.index = 0 [static, package, inherited]

Definition at line 60 of file Channel.java.

Referenced by com.jcraft.jsch.Channel.Channel().

boolean com.jcraft.jsch.ChannelX11.init = true [private]

Definition at line 44 of file ChannelX11.java.

IO com.jcraft.jsch.Channel.io = null [package, inherited]
volatile int com.jcraft.jsch.Channel.lmpsize = 0x4000 [package, inherited]

Definition at line 127 of file Channel.java.

Referenced by com.jcraft.jsch.ChannelDirectTCPIP.connect().

final int com.jcraft.jsch.ChannelX11.LOCAL_MAXIMUM_PACKET_SIZE = 0x4000 [static, private]

Definition at line 37 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.ChannelX11().

final int com.jcraft.jsch.ChannelX11.LOCAL_WINDOW_SIZE_MAX = 0x20000 [static, private]

Definition at line 36 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.ChannelX11().

volatile int com.jcraft.jsch.Channel.lwsize = lwsize_max [package, inherited]

Definition at line 126 of file Channel.java.

Referenced by com.jcraft.jsch.ChannelDirectTCPIP.connect().

volatile int com.jcraft.jsch.Channel.lwsize_max = 0x100000 [package, inherited]

Definition at line 125 of file Channel.java.

int com.jcraft.jsch.Channel.notifyme = 0 [package, inherited]
volatile boolean com.jcraft.jsch.Channel.open_confirmation = false [package, inherited]

Definition at line 140 of file Channel.java.

Referenced by com.jcraft.jsch.ChannelDirectTCPIP.connect().

int com.jcraft.jsch.ChannelX11.port = 6000 [static, private]
volatile int com.jcraft.jsch.Channel.recipient = -1 [package, inherited]
volatile int com.jcraft.jsch.Channel.reply = 0 [package, inherited]

Definition at line 144 of file Channel.java.

Referenced by com.jcraft.jsch.Request.write().

volatile int com.jcraft.jsch.Channel.rmpsize = 0 [package, inherited]
volatile long com.jcraft.jsch.Channel.rwsize = 0 [package, inherited]

Definition at line 129 of file Channel.java.

Socket com.jcraft.jsch.ChannelX11.socket = null [private]

Definition at line 55 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.run().

final int com.jcraft.jsch.Channel.SSH_MSG_CHANNEL_OPEN_CONFIRMATION = 91 [static, package, inherited]

Definition at line 51 of file Channel.java.

final int com.jcraft.jsch.Channel.SSH_MSG_CHANNEL_OPEN_FAILURE = 92 [static, package, inherited]

Definition at line 52 of file Channel.java.

final int com.jcraft.jsch.Channel.SSH_MSG_CHANNEL_WINDOW_ADJUST = 93 [static, package, inherited]

Definition at line 53 of file Channel.java.

final int com.jcraft.jsch.Channel.SSH_OPEN_ADMINISTRATIVELY_PROHIBITED = 1 [static, package, inherited]
final int com.jcraft.jsch.Channel.SSH_OPEN_CONNECT_FAILED = 2 [static, package, inherited]

Definition at line 56 of file Channel.java.

final int com.jcraft.jsch.Channel.SSH_OPEN_RESOURCE_SHORTAGE = 4 [static, package, inherited]

Definition at line 58 of file Channel.java.

final int com.jcraft.jsch.Channel.SSH_OPEN_UNKNOWN_CHANNEL_TYPE = 3 [static, package, inherited]

Definition at line 57 of file Channel.java.

byte [] com.jcraft.jsch.ChannelX11.table [static, private]
Initial value:
{0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,
                               0x61,0x62,0x63,0x64,0x65,0x66}

Definition at line 52 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.getFakedCookie(), and com.jcraft.jsch.ChannelX11.revtable().

Thread com.jcraft.jsch.Channel.thread = null [package, inherited]
final int com.jcraft.jsch.ChannelX11.TIMEOUT = 10*1000 [static, private]

Definition at line 39 of file ChannelX11.java.

Referenced by com.jcraft.jsch.ChannelX11.run().

byte [] com.jcraft.jsch.Channel.type = Util.str2byte("foo") [protected, inherited]

The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1