MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / request

Method request

java/com/jcraft/jsch/RequestShell.java:33–50  ·  view source on GitHub ↗
(Session session, Channel channel)

Source from the content-addressed store, hash-verified

31
32class RequestShell extends Request{
33 public void request(Session session, Channel channel) throws Exception{
34 super.request(session, channel);
35
36 Buffer buf=new Buffer();
37 Packet packet=new Packet(buf);
38
39 // send
40 // byte SSH_MSG_CHANNEL_REQUEST(98)
41 // uint32 recipient channel
42 // string request type // "shell"
43 // boolean want reply // 0
44 packet.reset();
45 buf.putByte((byte) Session.SSH_MSG_CHANNEL_REQUEST);
46 buf.putInt(channel.getRecipient());
47 buf.putString(Util.str2byte("shell"));
48 buf.putByte((byte)(waitForReply() ? 1 : 0));
49 write(packet);
50 }
51}

Callers 1

startMethod · 0.95

Calls 8

resetMethod · 0.95
putByteMethod · 0.95
putIntMethod · 0.95
putStringMethod · 0.95
str2byteMethod · 0.95
getRecipientMethod · 0.80
waitForReplyMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected