Usually not to be used by applications. More...
Public Member Functions | |
Packet (Buffer buffer) | |
creates a new Packet, based on a buffer. | |
void | reset () |
resets the buffer's index to point to the start of the payload. | |
Package Functions | |
void | padding (int bsize) |
int | shift (int len, int bsize, int mac) |
void | unshift (byte command, int recipient, int s, int len) |
Buffer | getBuffer () |
Static Package Functions | |
static void | setRandom (Random foo) |
Package Attributes | |
Buffer | buffer |
byte[] | ba4 = new byte[4] |
Static Private Attributes | |
static Random | random = null |
Usually not to be used by applications.
A single packet to be sent to or received from the remote side. The packet class handles padding of a Buffer.
Definition at line 38 of file Packet.java.
com.jcraft.jsch.Packet.Packet | ( | Buffer | buffer | ) |
creates a new Packet, based on a buffer.
buffer | the Buffer to be used for the packets data. |
Definition at line 50 of file Packet.java.
Buffer com.jcraft.jsch.Packet.getBuffer | ( | ) | [package] |
Definition at line 127 of file Packet.java.
References com.jcraft.jsch.Packet.buffer.
void com.jcraft.jsch.Packet.padding | ( | int | bsize | ) | [package] |
Definition at line 60 of file Packet.java.
References com.jcraft.jsch.Packet.ba4, com.jcraft.jsch.Buffer.buffer, com.jcraft.jsch.Packet.buffer, com.jcraft.jsch.Buffer.index, and com.jcraft.jsch.Packet.random.
void com.jcraft.jsch.Packet.reset | ( | ) |
resets the buffer's index to point to the start of the payload.
Definition at line 57 of file Packet.java.
References com.jcraft.jsch.Packet.buffer, and com.jcraft.jsch.Buffer.index.
Referenced by com.jcraft.jsch.Session.connect(), com.jcraft.jsch.ChannelDirectTCPIP.connect(), com.jcraft.jsch.ChannelForwardedTCPIP.delPort(), com.jcraft.jsch.RequestX11.request(), com.jcraft.jsch.RequestWindowChange.request(), com.jcraft.jsch.RequestSubsystem.request(), com.jcraft.jsch.RequestSignal.request(), com.jcraft.jsch.RequestShell.request(), com.jcraft.jsch.RequestSftp.request(), com.jcraft.jsch.RequestPtyReq.request(), com.jcraft.jsch.RequestExec.request(), com.jcraft.jsch.RequestEnv.request(), com.jcraft.jsch.RequestAgentForwarding.request(), com.jcraft.jsch.ChannelX11.run(), com.jcraft.jsch.ChannelSession.run(), com.jcraft.jsch.ChannelForwardedTCPIP.run(), com.jcraft.jsch.ChannelDirectTCPIP.run(), com.jcraft.jsch.ChannelAgentForwarding.send(), com.jcraft.jsch.Session.send_kexinit(), com.jcraft.jsch.Session.send_newkeys(), com.jcraft.jsch.UserAuthPublicKey.start(), com.jcraft.jsch.UserAuthPassword.start(), com.jcraft.jsch.UserAuthNone.start(), and com.jcraft.jsch.UserAuthKeyboardInteractive.start().
static void com.jcraft.jsch.Packet.setRandom | ( | Random | foo | ) | [static, package] |
Definition at line 41 of file Packet.java.
References com.jcraft.jsch.Packet.random.
int com.jcraft.jsch.Packet.shift | ( | int | len, | |
int | bsize, | |||
int | mac | |||
) | [package] |
Definition at line 86 of file Packet.java.
References com.jcraft.jsch.Buffer.buffer, com.jcraft.jsch.Packet.buffer, and com.jcraft.jsch.Buffer.index.
void com.jcraft.jsch.Packet.unshift | ( | byte | command, | |
int | recipient, | |||
int | s, | |||
int | len | |||
) | [package] |
Definition at line 117 of file Packet.java.
References com.jcraft.jsch.Buffer.buffer, com.jcraft.jsch.Packet.buffer, and com.jcraft.jsch.Buffer.index.
byte [] com.jcraft.jsch.Packet.ba4 = new byte[4] [package] |
Definition at line 44 of file Packet.java.
Referenced by com.jcraft.jsch.Packet.padding().
Buffer com.jcraft.jsch.Packet.buffer [package] |
Definition at line 43 of file Packet.java.
Referenced by com.jcraft.jsch.Packet.getBuffer(), com.jcraft.jsch.Packet.padding(), com.jcraft.jsch.Packet.reset(), com.jcraft.jsch.Packet.shift(), and com.jcraft.jsch.Packet.unshift().
Random com.jcraft.jsch.Packet.random = null [static, private] |
Definition at line 40 of file Packet.java.
Referenced by com.jcraft.jsch.Packet.padding(), and com.jcraft.jsch.Packet.setRandom().