C# Class Tamir.SharpSsh.jsch.Session

Inheritance: Runnable
Show file Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
connect ( ) : void
connect ( int connectTimeout ) : void
delPortForwardingL ( String boundaddress, int lport ) : void
delPortForwardingL ( int lport ) : void
delPortForwardingR ( int rport ) : void
disconnect ( ) : void
encode ( Packet packet ) : void
getCipher ( ) : String
getClientVersion ( ) : String
getConfig ( object name ) : String
getHost ( ) : String
getHostKey ( ) : HostKey
getMac ( ) : String
getPort ( ) : int
getPortForwardingL ( ) : String[]
getServerVersion ( ) : String
getTimeout ( ) : int
getUserName ( ) : String
isConnected ( ) : bool
openChannel ( String type ) : Channel
read ( Buffer buf ) : Buffer
rekey ( ) : void
run ( ) : void
sendIgnore ( ) : void
sendKeepAliveMsg ( ) : void
setClientVersion ( String cv ) : void
setConfig ( Hashtable foo ) : void
setHost ( String host ) : void
setInputStream ( Stream In ) : void
setOutputStream ( Stream Out ) : void
setPassword ( String foo ) : void
setPort ( int port ) : void
setPortForwardingL ( String boundaddress, int lport, String host, int rport ) : void
setPortForwardingL ( String boundaddress, int lport, String host, int rport, ServerSocketFactory ssf ) : void
setPortForwardingL ( int lport, String host, int rport ) : void
setPortForwardingR ( int rport, String daemon ) : void
setPortForwardingR ( int rport, String daemon, System arg ) : void
setPortForwardingR ( int rport, String host, int lport ) : void
setPortForwardingR ( int rport, String host, int lport, SocketFactory sf ) : void
setProxy ( Proxy proxy ) : void
setSocketFactory ( SocketFactory foo ) : void
setTimeout ( int foo ) : void
setUserInfo ( UserInfo userinfo ) : void
setX11Cookie ( String cookie ) : void
setX11Host ( String host ) : void
setX11Port ( int port ) : void
write ( Packet packet ) : void
write ( Packet packet, Channel c, int length ) : void

Private Methods

Method Description
Session ( JSch jsch ) : System.IO
_write ( Packet packet ) : void
addChannel ( Channel channel ) : void
checkHost ( String host, KeyExchange kex ) : void
getSessionId ( ) : byte[]
receive_kexinit ( Buffer buf ) : KeyExchange
receive_newkeys ( Buffer buf, KeyExchange kex ) : void
send_kexinit ( ) : void
send_newkeys ( ) : void
setPortForwarding ( int rport ) : void
setUserName ( String foo ) : void
updateKeys ( KeyExchange kex ) : void

Method Details

connect() public method

public connect ( ) : void
return void

connect() public method

public connect ( int connectTimeout ) : void
connectTimeout int
return void

delPortForwardingL() public method

public delPortForwardingL ( String boundaddress, int lport ) : void
boundaddress String
lport int
return void

delPortForwardingL() public method

public delPortForwardingL ( int lport ) : void
lport int
return void

delPortForwardingR() public method

public delPortForwardingR ( int rport ) : void
rport int
return void

disconnect() public method

public disconnect ( ) : void
return void

encode() public method

public encode ( Packet packet ) : void
packet Packet
return void

getCipher() public method

public getCipher ( ) : String
return String

getClientVersion() public method

public getClientVersion ( ) : String
return String

getConfig() public method

public getConfig ( object name ) : String
name object
return String

getHost() public method

public getHost ( ) : String
return String

getHostKey() public method

public getHostKey ( ) : HostKey
return HostKey

getMac() public method

public getMac ( ) : String
return String

getPort() public method

public getPort ( ) : int
return int

getPortForwardingL() public method

public getPortForwardingL ( ) : String[]
return String[]

getServerVersion() public method

public getServerVersion ( ) : String
return String

getTimeout() public method

public getTimeout ( ) : int
return int

getUserName() public method

public getUserName ( ) : String
return String

isConnected() public method

public isConnected ( ) : bool
return bool

openChannel() public method

public openChannel ( String type ) : Channel
type String
return Channel

read() public method

public read ( Buffer buf ) : Buffer
buf Buffer
return Buffer

rekey() public method

public rekey ( ) : void
return void

run() public method

public run ( ) : void
return void

sendIgnore() public method

public sendIgnore ( ) : void
return void

sendKeepAliveMsg() public method

public sendKeepAliveMsg ( ) : void
return void

setClientVersion() public method

public setClientVersion ( String cv ) : void
cv String
return void

setConfig() public method

public setConfig ( Hashtable foo ) : void
foo Hashtable
return void

setHost() public method

public setHost ( String host ) : void
host String
return void

setInputStream() public method

public setInputStream ( Stream In ) : void
In Stream
return void

setOutputStream() public method

public setOutputStream ( Stream Out ) : void
Out Stream
return void

setPassword() public method

public setPassword ( String foo ) : void
foo String
return void

setPort() public method

public setPort ( int port ) : void
port int
return void

setPortForwardingL() public method

public setPortForwardingL ( String boundaddress, int lport, String host, int rport ) : void
boundaddress String
lport int
host String
rport int
return void

setPortForwardingL() public method

public setPortForwardingL ( String boundaddress, int lport, String host, int rport, ServerSocketFactory ssf ) : void
boundaddress String
lport int
host String
rport int
ssf ServerSocketFactory
return void

setPortForwardingL() public method

public setPortForwardingL ( int lport, String host, int rport ) : void
lport int
host String
rport int
return void

setPortForwardingR() public method

public setPortForwardingR ( int rport, String daemon ) : void
rport int
daemon String
return void

setPortForwardingR() public method

public setPortForwardingR ( int rport, String daemon, System arg ) : void
rport int
daemon String
arg System
return void

setPortForwardingR() public method

public setPortForwardingR ( int rport, String host, int lport ) : void
rport int
host String
lport int
return void

setPortForwardingR() public method

public setPortForwardingR ( int rport, String host, int lport, SocketFactory sf ) : void
rport int
host String
lport int
sf SocketFactory
return void

setProxy() public method

public setProxy ( Proxy proxy ) : void
proxy Proxy
return void

setSocketFactory() public method

public setSocketFactory ( SocketFactory foo ) : void
foo SocketFactory
return void

setTimeout() public method

public setTimeout ( int foo ) : void
foo int
return void

setUserInfo() public method

public setUserInfo ( UserInfo userinfo ) : void
userinfo UserInfo
return void

setX11Cookie() public method

public setX11Cookie ( String cookie ) : void
cookie String
return void

setX11Host() public method

public setX11Host ( String host ) : void
host String
return void

setX11Port() public method

public setX11Port ( int port ) : void
port int
return void

write() public method

public write ( Packet packet ) : void
packet Packet
return void

write() public method

public write ( Packet packet, Channel c, int length ) : void
packet Packet
c Channel
length int
return void