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

Method sendOpenFailure

java/com/jcraft/jsch/Channel.java:692–706  ·  view source on GitHub ↗
(int reasoncode)

Source from the content-addressed store, hash-verified

690 }
691
692 protected void sendOpenFailure(int reasoncode){
693 try{
694 Buffer buf=new Buffer(100);
695 Packet packet=new Packet(buf);
696 packet.reset();
697 buf.putByte((byte)SSH_MSG_CHANNEL_OPEN_FAILURE);
698 buf.putInt(getRecipient());
699 buf.putInt(reasoncode);
700 buf.putString(Util.str2byte("open failed"));
701 buf.putString(Util.empty);
702 getSession().write(packet);
703 }
704 catch(Exception e){
705 }
706 }
707
708 protected Packet genChannelOpenPacket(){
709 Buffer buf=new Buffer(100);

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 8

resetMethod · 0.95
putByteMethod · 0.95
putIntMethod · 0.95
getRecipientMethod · 0.95
putStringMethod · 0.95
str2byteMethod · 0.95
getSessionMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected