(int reasoncode)
| 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); |
no test coverage detected